Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | FROM elasticsearch:2.1.2 |
| 2 | |
| 3 | RUN apt-get -y update |
| 4 | RUN apt-get -y install apt-utils |
| 5 | RUN apt-get -y install curl |
| 6 | RUN apt-get -y install vim |
| 7 | RUN mkdir -p /var/chef/nodes |
| 8 | |
| 9 | COPY chef-solo /root/chef-solo/ |
| 10 | COPY chef-repo/cookbooks /root/chef-solo/cookbooks/ |
| 11 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 12 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 13 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
| 14 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | COPY startup.sh /root/ |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 16 | RUN chmod 770 /root/startup.sh |
| 17 | |
| 18 | ENTRYPOINT [ "/root/startup.sh" ] |