blob: 2b29131d8167fa8727ab0cc721e7c75de17feb7b [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001FROM ubuntu
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 && \
10 if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
Michael Lando451a3402017-02-19 10:28:42 +020011RUN apt-get -y update && apt-get -y install --no-install-recommends apt-utils
12RUN apt-get -y install curl
13RUN apt-get -y install vim
14RUN apt-get -y install default-jre && apt-get -y install openjdk-8-jdk
15RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
16
Michael Lando451a3402017-02-19 10:28:42 +020017COPY chef-solo /root/chef-solo/
18COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
19
Michael Lando451a3402017-02-19 10:28:42 +020020# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020021RUN curl -L https://omnitruck.chef.io/install.sh | bash
Michael Lando451a3402017-02-19 10:28:42 +020022
23COPY startup.sh /root/
Michael Lando451a3402017-02-19 10:28:42 +020024RUN chmod 770 /root/startup.sh
Michael Lando451a3402017-02-19 10:28:42 +020025ENTRYPOINT [ "/root/startup.sh" ]