]> granicus.if.org Git - jq/commitdiff
Revert e7caf68 for Dockerfile
authorNicolas Williams <nico@cryptonector.com>
Fri, 24 Feb 2017 04:01:43 +0000 (22:01 -0600)
committerNicolas Williams <nico@cryptonector.com>
Fri, 24 Feb 2017 04:01:43 +0000 (22:01 -0600)
Dockerfile

index 2a40fb1d65979d57df34bd40261228cf760c65e1..4161b9789c2829765ff678cb609d0573df387227 100644 (file)
@@ -16,17 +16,26 @@ RUN apt-get update && \
         ruby \
         wget \
         ruby-dev && \
-    git submodule init && \
-    git submodule update && \
+    wget https://github.com/kkos/oniguruma/archive/v5.9.6.tar.gz -O onig-5.9.6.tar.gz && \
+    sha512sum onig-5.9.6.tar.gz | grep 6b048d345e148c9da38af7a8df76d4a358eb3d4db91fa7834076e511f526a63544284f212b0d56badbbd33112c8b458a5fff02bfbbda012ecfe478bc436ea679 && \
+    tar zxvf onig-5.9.6.tar.gz && \
+    (cd oniguruma-5.9.6 && \
+        touch NEWS ChangeLog && \
+        autoreconf -i && \
+        ./configure --prefix=/usr/local && \
+        make && \
+        make install ) && \
     gem install bundler && \
     (cd /app/docs && bundle install) && \
     (cd /app && \
         autoreconf -i && \
-        ./configure --with-oniguruma=builtin --disable-valgrind --enable-all-static --prefix=/usr/local && \
+        ./configure --disable-valgrind --enable-all-static --prefix=/usr/local && \
         make -j8 && \
         make check && \
         make install && \
         make distclean ) && \
+    (cd oniguruma-5.9.6 && \
+        make uninstall ) && \
     apt-get purge -y \
         build-essential \
         autoconf \
@@ -37,6 +46,7 @@ RUN apt-get update && \
         ruby \
         ruby-dev && \
     apt-get autoremove -y && \
+    rm -rf oniguruma-5.9.6 && \
     rm -rf /var/lib/apt/lists/* /var/lib/gems
 
 ENTRYPOINT ["/usr/local/bin/jq"]