Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | FROM ubuntu |
| 2 | RUN apt-get -y update && apt-get -y install --no-install-recommends apt-utils |
| 3 | RUN apt-get -y install curl |
| 4 | RUN apt-get -y install vim |
| 5 | RUN apt-get -y install default-jre && apt-get -y install openjdk-8-jdk |
| 6 | RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java |
| 7 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 8 | COPY chef-solo /root/chef-solo/ |
| 9 | COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ |
| 10 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 11 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 12 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 13 | |
| 14 | COPY startup.sh /root/ |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | RUN chmod 770 /root/startup.sh |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 16 | ENTRYPOINT [ "/root/startup.sh" ] |