blob: bd682be3f7abddee5a94416d5854ac0770645941 [file] [log] [blame]
Tal Gitelmanfa222902017-08-16 13:44:31 +03001FROM 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
11
12RUN 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
21RUN curl -L https://omnitruck.chef.io/install.sh | bash
22
23RUN cp ${JETTY_HOME}/resources/log4j.properties ${JETTY_BASE}/resources/log4j.properties
24
25ADD WSSimulator*.war ${JETTY_BASE}/webapps/
26RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
27
28COPY startup.sh /root/
29
30RUN chmod 770 /root/startup.sh
31
32ENTRYPOINT [ "/root/startup.sh" ]