Chuck Short | 7712158 | 2017-07-14 09:06:21 -0500 | [diff] [blame^] | 1 | FROM ubuntu:16.04 |
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 && \ |
Chuck Short | 7712158 | 2017-07-14 09:06:21 -0500 | [diff] [blame^] | 10 | RUN 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 Morales | 648b32e | 2017-06-14 14:45:20 -0500 | [diff] [blame] | 17 | 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] | 18 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 19 | COPY chef-solo /root/chef-solo/ |
| 20 | COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ |
| 21 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 22 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 23 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 24 | |
| 25 | COPY startup.sh /root/ |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 26 | RUN chmod 770 /root/startup.sh |
Chuck Short | 7712158 | 2017-07-14 09:06:21 -0500 | [diff] [blame^] | 27 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 28 | ENTRYPOINT [ "/root/startup.sh" ] |