downgrade ruby to 2.3.4
authorSam <sam.saffron@gmail.com>
Fri, 28 Jul 2017 13:48:25 +0000 (09:48 -0400)
committerSam <sam.saffron@gmail.com>
Fri, 28 Jul 2017 13:48:25 +0000 (09:48 -0400)
upgrade nginx to latest stable

image/base/Dockerfile
image/base/install-nginx
image/base/rb_thread_fd_close.patch [new file with mode: 0644]

index 160a4d84450dccffc55c6b8803668e1804692af5..4347763e63e1e8f01d93e3c7ad61cd2581e0a6ff 100644 (file)
@@ -72,13 +72,14 @@ RUN mkdir /lockless && cd /lockless && curl -O https://locklessinc.com/downloads
       tar zxf lockless_allocator_linux.tgz && mv lockless_allocator_linux/64bit/libllalloc.so.1.4 /usr/lib &&\
       cd / && rm -rf /lockless
 
+ADD rb_thread_fd_close.patch /tmp/rb_thread_fd_close.patch
 RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
     mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
     cd /src/ruby-build && ./install.sh &&\
-    cd / && rm -rf /src/ruby-build && ruby-build 2.4.1 /usr/local
+    cd / && rm -rf /src/ruby-build && (ruby-build 2.3.4 /usr/local --patch << /tmp/rb_thread_fd_close.patch)
 
 RUN gem install bundler &&\
-    rm -rf /usr/local/share/ri/2.4.1/system &&\
+    rm -rf /usr/local/share/ri/2.3.4/system &&\
     cd / && git clone https://github.com/SamSaffron/pups.git
 
 ADD install-imagemagick /tmp/install-imagemagick
index eb61843578f4edd01c0fd383d5f01ceaf5be242a..e252ecfd77faa9d30513e407f1e4e2bcd8652a9d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-VERSION=1.11.6
+VERSION=1.12.1
 cd /tmp
 
 apt-get install -y autoconf
diff --git a/image/base/rb_thread_fd_close.patch b/image/base/rb_thread_fd_close.patch
new file mode 100644 (file)
index 0000000..07c2563
--- /dev/null
@@ -0,0 +1,15 @@
+--- branches/ruby_2_3/thread.c 2017/04/09 11:53:53     58288
++++ branches/ruby_2_3/thread.c 2017/04/09 13:26:01     58289
+@@ -2187,6 +2187,12 @@
+     return busy;
+ }
++void
++rb_thread_fd_close(int fd)
++{
++    while (rb_notify_fd_close(fd));
++}
++
+ /*
+  *  call-seq:
+  *     thr.raise