blob: c59d9e21da19c98dacf4c80edfcca6b36f6d800c [file] [log] [blame]
Idan Amited4ad212017-08-14 12:08:45 +03001FROM jetty:9.3-jre8
Michael Lando9dd269d2017-02-20 01:04:22 +02002
Victor Morales648b32e2017-06-14 14:45:20 -05003ARG 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
11
Michael Lando9dd269d2017-02-20 01:04:22 +020012RUN apt-get -y update
13RUN apt-get -y install apt-utils
14RUN apt-get -y install curl
15RUN apt-get -y install vim
16
17COPY chef-solo /root/chef-solo/
18COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
19
20# install chef-solo
Grinberg Motic3bda482017-02-23 11:24:34 +020021RUN curl -L https://omnitruck.chef.io/install.sh | bash
Michael Lando9dd269d2017-02-20 01:04:22 +020022
23RUN cp ${JETTY_HOME}/resources/log4j.properties ${JETTY_BASE}/resources/log4j.properties
24
25ADD onboarding*.war ${JETTY_BASE}/webapps/
Michael Landoed64b5e2017-06-09 03:19:04 +030026ADD catalog-fe-*.war ${JETTY_BASE}/webapps/
Michael Lando9dd269d2017-02-20 01:04:22 +020027RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
28
29COPY startup.sh /root/
30
31RUN chmod 770 /root/startup.sh
32
33ENTRYPOINT [ "/root/startup.sh" ]