Areli Fuss | 547839b | 2017-08-22 15:34:37 +0300 | [diff] [blame] | 1 | FROM ubuntu:16.04 |
| 2 | |
| 3 | ARG HTTP_PROXY |
| 4 | ARG HTTPS_PROXY |
| 5 | |
| 6 | ENV HTTP_PROXY ${HTTP_PROXY} |
| 7 | ENV HTTPS_PROXY ${HTTPS_PROXY} |
| 8 | |
| 9 | RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 10 | RUN if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 11 | |
| 12 | RUN apt-get -y update && apt-get -y install --no-install-recommends \ |
| 13 | apt-utils \ |
| 14 | curl \ |
| 15 | default-jre \ |
| 16 | openjdk-8-jdk \ |
| 17 | vim |
| 18 | |
| 19 | # Set Java links |
| 20 | RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java |
| 21 | |
| 22 | # install chef-solo |
| 23 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
| 24 | |