blob: d68b59078ad7de2a7f9c814cc2da5ed1f2501311 [file] [log] [blame]
Michael Lando9dd269d2017-02-20 01:04:22 +02001FROM jetty:9.3.15-jre8
2
3RUN apt-get -y update
4RUN apt-get -y install apt-utils
5RUN apt-get -y install curl
6RUN apt-get -y install vim
7RUN apt-get -y install jq
8RUN apt-get -y install python libssl-dev libcurl4-openssl-dev python-dev gcc
9
10COPY chef-solo /root/chef-solo/
11COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
12
13RUN python /root/chef-solo/cookbooks/sdc-normatives/files/default/get-pip.py
14RUN pip install pycurl
15
16# install chef-solo
Grinberg Moti7aea13f2017-02-22 12:01:00 +020017#RUN curl -L http://www.opscode.com/chef/install.sh | bash
Grinberg Motif79a5d12017-02-22 15:36:03 +020018COPY chef-install.sh /root/
19RUN chmod 770 /root/chef-install.sh
20RUN bash /root/chef-install.sh
Michael Lando9dd269d2017-02-20 01:04:22 +020021
22ADD onboarding-be-__SDC-RELEASE__.war ${JETTY_BASE}/webapps/
23ADD catalog-be-__SDC-RELEASE__.war ${JETTY_BASE}/webapps/
24RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
25
26COPY startup.sh /root/
27
28RUN chmod 770 /root/startup.sh
29
30ENTRYPOINT [ "/root/startup.sh" ]