blob: be629760bf6557f75e08983dbcd8f2afdf5627ca [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001FROM ubuntu
2RUN apt-get -y update && apt-get -y install --no-install-recommends apt-utils
3RUN apt-get -y install curl
4RUN apt-get -y install vim
5RUN apt-get -y install default-jre && apt-get -y install openjdk-8-jdk
6RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
7
8
9COPY chef-solo /root/chef-solo/
10COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
11
12
13# install chef-solo
Grinberg Moti7aea13f2017-02-22 12:01:00 +020014#RUN curl -L http://www.opscode.com/chef/install.sh | bash
Grinberg Motif79a5d12017-02-22 15:36:03 +020015COPY chef-install.sh /root/
16RUN chmod 770 /root/chef-install.sh
17RUN bash /root/chef-install.sh
Michael Lando451a3402017-02-19 10:28:42 +020018
19COPY startup.sh /root/
20
21RUN chmod 770 /root/startup.sh
22
23ENTRYPOINT [ "/root/startup.sh" ]