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 | |
| 8 | |
| 9 | COPY chef-solo /root/chef-solo/ |
| 10 | COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ |
| 11 | |
| 12 | |
| 13 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame^] | 14 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | |
| 16 | COPY startup.sh /root/ |
| 17 | |
| 18 | RUN chmod 770 /root/startup.sh |
| 19 | |
| 20 | ENTRYPOINT [ "/root/startup.sh" ] |