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 | 7aea13f | 2017-02-22 12:01:00 +0200 | [diff] [blame] | 14 | #RUN curl -L http://www.opscode.com/chef/install.sh | bash |
Grinberg Moti | f79a5d1 | 2017-02-22 15:36:03 +0200 | [diff] [blame^] | 15 | COPY chef-install.sh /root/ |
| 16 | RUN chmod 770 /root/chef-install.sh |
| 17 | RUN bash /root/chef-install.sh |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 18 | |
| 19 | COPY startup.sh /root/ |
| 20 | |
| 21 | RUN chmod 770 /root/startup.sh |
| 22 | |
| 23 | ENTRYPOINT [ "/root/startup.sh" ] |