Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 1 | FROM jetty:9.3.15-jre8 |
| 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 | |
| 8 | COPY chef-solo /root/chef-solo/ |
| 9 | COPY chef-repo/cookbooks /root/chef-solo/cookbooks/ |
| 10 | |
| 11 | # install chef-solo |
Grinberg Moti | 7aea13f | 2017-02-22 12:01:00 +0200 | [diff] [blame] | 12 | #RUN curl -L http://www.opscode.com/chef/install.sh | bash |
Grinberg Moti | f79a5d1 | 2017-02-22 15:36:03 +0200 | [diff] [blame] | 13 | COPY chef-install.sh /root/ |
| 14 | RUN chmod 770 /root/chef-install.sh |
| 15 | RUN bash /root/chef-install.sh |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 16 | |
| 17 | RUN cp ${JETTY_HOME}/resources/log4j.properties ${JETTY_BASE}/resources/log4j.properties |
| 18 | |
| 19 | ADD onboarding*.war ${JETTY_BASE}/webapps/ |
| 20 | ADD catalog-fe-__SDC-RELEASE__.war ${JETTY_BASE}/webapps/ |
| 21 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps |
| 22 | |
| 23 | COPY startup.sh /root/ |
| 24 | |
| 25 | RUN chmod 770 /root/startup.sh |
| 26 | |
| 27 | ENTRYPOINT [ "/root/startup.sh" ] |