From: Paul Bonaud Date: Mon, 20 May 2019 12:59:05 +0000 (+0200) Subject: deps: install Ruby 2.6 and Ansible 2.5 as extra image dependencies X-Git-Tag: node-8.12.0-ansible-2.5-ruby-2.6-dhall-1.21.0^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=3acc76a2ba183466e3c55788505f16a9f9e0bf69;p=github%2Ffretlink%2Fdocker-node-mongotools.git deps: install Ruby 2.6 and Ansible 2.5 as extra image dependencies --- diff --git a/Dockerfile b/Dockerfile index b7b05dd..33698e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,26 @@ FROM node:8.12.0-stretch WORKDIR /app +# Install Mongo repository 3.6 RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 RUN echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" > /etc/apt/sources.list.d/mongodb-org-3.6.list + +# Install Mongo, python and libpq RUN apt-get update -RUN apt-get install -y mongodb-org-tools mongodb-org-shell +RUN apt-get install -y mongodb-org-tools mongodb-org-shell \ + python-pip python-dev libffi-dev libssl-dev libpq5 libpq-dev \ + && apt-get -y --purge remove python-cffi \ + && pip install --upgrade cffi setuptools + +# Install Ansible +RUN easy_install -U pip && pip install 'ansible>=2.5,<2.6' + +# Install modern Ruby +RUN cd /tmp && curl -LO https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.gz && \ + tar -xf ruby-2.6.3.tar.gz && cd ruby-2.6.3 && ./configure +RUN cd /tmp/ruby-2.6.3 && make && make install + +# Install Dhall RUN curl -LO https://github.com/dhall-lang/dhall-haskell/releases/download/1.21.0/dhall-json-1.2.7-x86_64-linux.tar.bz2 && \ tar -xf dhall-json-1.2.7-x86_64-linux.tar.bz2 && \ mv ./bin/dhall-to-json /usr/bin