Idan Amit | ed4ad21 | 2017-08-14 12:08:45 +0300 | [diff] [blame] | 1 | FROM jetty:9.3-jre8 |
Victor Morales | 648b32e | 2017-06-14 14:45:20 -0500 | [diff] [blame] | 2 | |
| 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 |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 11 | |
Michael Lando | 9db4052 | 2017-07-22 17:10:02 +0300 | [diff] [blame] | 12 | |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 13 | RUN apt-get -y update |
| 14 | RUN apt-get -y install apt-utils |
| 15 | RUN apt-get -y install curl |
| 16 | RUN apt-get -y install vim |
| 17 | RUN apt-get -y install jq |
| 18 | RUN apt-get -y install python libssl-dev libcurl4-openssl-dev python-dev gcc |
| 19 | |
| 20 | COPY chef-solo /root/chef-solo/ |
| 21 | COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ |
| 22 | |
| 23 | RUN python /root/chef-solo/cookbooks/sdc-normatives/files/default/get-pip.py |
| 24 | RUN pip install pycurl |
| 25 | |
| 26 | # install chef-solo |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 27 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 28 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 29 | ADD onboarding-be-*.war ${JETTY_BASE}/webapps/ |
| 30 | ADD catalog-be-*.war ${JETTY_BASE}/webapps/ |
Tal Gitelman | 68ccc45 | 2017-06-22 18:23:07 +0300 | [diff] [blame] | 31 | ADD api-docs.war ${JETTY_BASE}/webapps/ |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 32 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps |
| 33 | |
| 34 | COPY startup.sh /root/ |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 35 | RUN chmod 770 /root/startup.sh |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 36 | ENTRYPOINT [ "/root/startup.sh" ] |