diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2019-05-20 15:03:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-20 15:03:29 +0200 |
commit | 183dca3a9791573850e321b1723fd48d1d2de13a (patch) | |
tree | af92110b44583fb13d8543d3cbacae653812162a | |
parent | 6f782f883f8affc0f7ced7846f479f3fd0088c9d (diff) | |
parent | 3acc76a2ba183466e3c55788505f16a9f9e0bf69 (diff) | |
download | docker-node-mongotools-183dca3a9791573850e321b1723fd48d1d2de13a.tar.gz docker-node-mongotools-183dca3a9791573850e321b1723fd48d1d2de13a.tar.zst docker-node-mongotools-183dca3a9791573850e321b1723fd48d1d2de13a.zip |
Merge pull request #6 from paulrbr-fl/rubynode-8.12.0-ansible-2.5-ruby-2.6-dhall-1.21.0
deps: install Ruby 2.6 and Ansible 2.5 as extra image dependencies
-rw-r--r-- | Dockerfile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -2,10 +2,26 @@ FROM node:8.12.0-stretch | |||
2 | 2 | ||
3 | WORKDIR /app | 3 | WORKDIR /app |
4 | 4 | ||
5 | # Install Mongo repository 3.6 | ||
5 | RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 | 6 | RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 |
6 | 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 | 7 | 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 |
8 | |||
9 | # Install Mongo, python and libpq | ||
7 | RUN apt-get update | 10 | RUN apt-get update |
8 | RUN apt-get install -y mongodb-org-tools mongodb-org-shell | 11 | RUN apt-get install -y mongodb-org-tools mongodb-org-shell \ |
12 | python-pip python-dev libffi-dev libssl-dev libpq5 libpq-dev \ | ||
13 | && apt-get -y --purge remove python-cffi \ | ||
14 | && pip install --upgrade cffi setuptools | ||
15 | |||
16 | # Install Ansible | ||
17 | RUN easy_install -U pip && pip install 'ansible>=2.5,<2.6' | ||
18 | |||
19 | # Install modern Ruby | ||
20 | RUN cd /tmp && curl -LO https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.gz && \ | ||
21 | tar -xf ruby-2.6.3.tar.gz && cd ruby-2.6.3 && ./configure | ||
22 | RUN cd /tmp/ruby-2.6.3 && make && make install | ||
23 | |||
24 | # Install Dhall | ||
9 | 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 && \ | 25 | 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 && \ |
10 | tar -xf dhall-json-1.2.7-x86_64-linux.tar.bz2 && \ | 26 | tar -xf dhall-json-1.2.7-x86_64-linux.tar.bz2 && \ |
11 | mv ./bin/dhall-to-json /usr/bin | 27 | mv ./bin/dhall-to-json /usr/bin |