blob: 47ca00eaa53d09f7efbe6034c3ca041aca1e5ad3 [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 Moti86fc38f2017-02-22 14:08:17 +020018RUN bash chef-install.sh
Michael Lando9dd269d2017-02-20 01:04:22 +020019
20ADD onboarding-be-__SDC-RELEASE__.war ${JETTY_BASE}/webapps/
21ADD catalog-be-__SDC-RELEASE__.war ${JETTY_BASE}/webapps/
22RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
23
24COPY startup.sh /root/
25
26RUN chmod 770 /root/startup.sh
27
28ENTRYPOINT [ "/root/startup.sh" ]