Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | FROM ubuntu |
Victor Morales | 648b32e | 2017-06-14 14:45:20 -0500 | [diff] [blame] | 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 | if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 11 | RUN apt-get -y update && apt-get -y install --no-install-recommends apt-utils |
| 12 | RUN apt-get -y install curl |
| 13 | RUN apt-get -y install vim |
| 14 | RUN apt-get -y install default-jre && apt-get -y install openjdk-8-jdk |
| 15 | RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java |
| 16 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 17 | COPY chef-solo /root/chef-solo/ |
| 18 | COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ |
| 19 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 20 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 21 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 22 | |
| 23 | COPY startup.sh /root/ |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 24 | RUN chmod 770 /root/startup.sh |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 25 | ENTRYPOINT [ "/root/startup.sh" ] |