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