summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2017-02-23 00:33:08 -0600
committerNicolas Williams <nico@cryptonector.com>2017-02-23 00:33:08 -0600
commite7caf68eddef665713907464529df8a71e7d1429 (patch)
tree56fd014a58390a236c3e19c611e6f2fbe49c8c21 /Dockerfile
parentc6374b6a1fce85687af3bffd3fa0f9541d174cb9 (diff)
Attempt to use builtin Oniguruma for CIs
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 3 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index 4161b978..2a40fb1d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,26 +16,17 @@ RUN apt-get update && \
ruby \
wget \
ruby-dev && \
- 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 ) && \
+ git submodule init && \
+ git submodule update && \
gem install bundler && \
(cd /app/docs && bundle install) && \
(cd /app && \
autoreconf -i && \
- ./configure --disable-valgrind --enable-all-static --prefix=/usr/local && \
+ ./configure --with-oniguruma=builtin --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 \
@@ -46,7 +37,6 @@ 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"]