blob: 29f8b202ca9e43bc8a45d681f1f711c3a3b78a4c [file] [log] [blame]
Areli Fuss547839b2017-08-22 15:34:37 +03001FROM ubuntu:16.04
2
3ARG HTTP_PROXY
4ARG HTTPS_PROXY
5
6ENV HTTP_PROXY ${HTTP_PROXY}
7ENV HTTPS_PROXY ${HTTPS_PROXY}
8
9RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi
10RUN if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
11
12RUN 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
20RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
21
22# install chef-solo
23RUN curl -L https://omnitruck.chef.io/install.sh | bash
24