blob: 9dd829158f8bca7dcb079ce0eb21398f90f191e1 [file] [log] [blame]
Chuck Short77121582017-07-14 09:06:21 -05001FROM ubuntu:16.04
Victor Morales648b32e2017-06-14 14:45:20 -05002
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 && \
Chuck Short77121582017-07-14 09:06:21 -050010RUN apt-get -y update && \
11 apt-get -y install --no-install-recommends apt-utils && \
12 apt-get install curl \
13 default-jre
14 openjdk-8-jdk
15 vim && \
16 update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Victor Morales648b32e2017-06-14 14:45:20 -050017 if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
Michael Lando451a3402017-02-19 10:28:42 +020018
Michael Lando451a3402017-02-19 10:28:42 +020019COPY chef-solo /root/chef-solo/
20COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
21
Michael Lando451a3402017-02-19 10:28:42 +020022# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020023RUN curl -L https://omnitruck.chef.io/install.sh | bash
Michael Lando451a3402017-02-19 10:28:42 +020024
25COPY startup.sh /root/
Michael Lando451a3402017-02-19 10:28:42 +020026RUN chmod 770 /root/startup.sh
Michael Lando451a3402017-02-19 10:28:42 +020027ENTRYPOINT [ "/root/startup.sh" ]