blob: 7054cc10c3c4032faf5d526598ebffb5ce9a4c85 [file] [log] [blame]
Idan Amited4ad212017-08-14 12:08:45 +03001FROM jetty:9.3-jre8
Victor Morales648b32e2017-06-14 14:45:20 -05002
3ARG HTTP_PROXY
4ARG HTTPS_PROXY
5
6ENV HTTP_PROXY ${HTTP_PROXY}
7ENV HTTPS_PROXY ${HTTPS_PROXY}
8
9RUN 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 Lando9dd269d2017-02-20 01:04:22 +020011
Michael Lando9db40522017-07-22 17:10:02 +030012
Michael Lando9dd269d2017-02-20 01:04:22 +020013RUN apt-get -y update
14RUN apt-get -y install apt-utils
15RUN apt-get -y install curl
16RUN apt-get -y install vim
17RUN apt-get -y install jq
18RUN apt-get -y install python libssl-dev libcurl4-openssl-dev python-dev gcc
19
20COPY chef-solo /root/chef-solo/
21COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
22
23RUN python /root/chef-solo/cookbooks/sdc-normatives/files/default/get-pip.py
24RUN pip install pycurl
25
26# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020027RUN curl -L https://omnitruck.chef.io/install.sh | bash
Michael Lando9dd269d2017-02-20 01:04:22 +020028
Michael Landoed64b5e2017-06-09 03:19:04 +030029ADD onboarding-be-*.war ${JETTY_BASE}/webapps/
30ADD catalog-be-*.war ${JETTY_BASE}/webapps/
Tal Gitelman68ccc452017-06-22 18:23:07 +030031ADD api-docs.war ${JETTY_BASE}/webapps/
Michael Lando9dd269d2017-02-20 01:04:22 +020032RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
33
34COPY startup.sh /root/
Michael Lando9dd269d2017-02-20 01:04:22 +020035RUN chmod 770 /root/startup.sh
Michael Lando9dd269d2017-02-20 01:04:22 +020036ENTRYPOINT [ "/root/startup.sh" ]