blob: 0dde50e4aff03aec79bc500d29dd0b85ae076882 [file] [log] [blame]
Victor Morales648b32e2017-06-14 14:45:20 -05001FROM jetty:9.3.15-jre8
2
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
12RUN apt-get -y update
13RUN apt-get -y install apt-utils
14RUN apt-get -y install curl
15RUN apt-get -y install vim
16RUN apt-get -y install jq
17RUN apt-get -y install python libssl-dev libcurl4-openssl-dev python-dev gcc
18
19COPY chef-solo /root/chef-solo/
20COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
21
22RUN python /root/chef-solo/cookbooks/sdc-normatives/files/default/get-pip.py
23RUN pip install pycurl
24
25# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020026RUN curl -L https://omnitruck.chef.io/install.sh | bash
Michael Lando9dd269d2017-02-20 01:04:22 +020027
Michael Landoed64b5e2017-06-09 03:19:04 +030028ADD onboarding-be-*.war ${JETTY_BASE}/webapps/
29ADD catalog-be-*.war ${JETTY_BASE}/webapps/
Michael Lando9dd269d2017-02-20 01:04:22 +020030RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
31
32COPY startup.sh /root/
Michael Lando9dd269d2017-02-20 01:04:22 +020033RUN chmod 770 /root/startup.sh
Michael Lando9dd269d2017-02-20 01:04:22 +020034ENTRYPOINT [ "/root/startup.sh" ]