Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 1 | FROM jetty:9.3.15-jre8 |
| 2 | |
Victor Morales | 648b32e | 2017-06-14 14:45:20 -0500 | [diff] [blame] | 3 | ARG HTTP_PROXY |
| 4 | ARG HTTPS_PROXY |
| 5 | |
| 6 | ENV HTTP_PROXY ${HTTP_PROXY} |
| 7 | ENV HTTPS_PROXY ${HTTPS_PROXY} |
| 8 | |
| 9 | RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \ |
| 10 | if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 11 | |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 12 | RUN apt-get -y update |
| 13 | RUN apt-get -y install apt-utils |
| 14 | RUN apt-get -y install curl |
| 15 | RUN apt-get -y install vim |
| 16 | |
| 17 | COPY chef-solo /root/chef-solo/ |
| 18 | COPY chef-repo/cookbooks /root/chef-solo/cookbooks/ |
| 19 | |
| 20 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 21 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 22 | |
| 23 | RUN cp ${JETTY_HOME}/resources/log4j.properties ${JETTY_BASE}/resources/log4j.properties |
| 24 | |
| 25 | ADD onboarding*.war ${JETTY_BASE}/webapps/ |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 26 | ADD catalog-fe-*.war ${JETTY_BASE}/webapps/ |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 27 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps |
| 28 | |
| 29 | COPY startup.sh /root/ |
| 30 | |
| 31 | RUN chmod 770 /root/startup.sh |
| 32 | |
| 33 | ENTRYPOINT [ "/root/startup.sh" ] |