add chef-install.sh until LF will fix curl
[sdc.git] / sdc-os-chef / sdc-backend / Dockerfile
1 FROM jetty:9.3.15-jre8
2
3 RUN apt-get -y update
4 RUN apt-get -y install apt-utils
5 RUN apt-get -y install curl
6 RUN apt-get -y install vim
7 RUN apt-get -y install jq
8 RUN apt-get -y install python libssl-dev libcurl4-openssl-dev python-dev gcc
9
10 COPY chef-solo /root/chef-solo/
11 COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
12
13 RUN python /root/chef-solo/cookbooks/sdc-normatives/files/default/get-pip.py
14 RUN pip install pycurl
15
16 # install chef-solo
17 #RUN curl -L http://www.opscode.com/chef/install.sh | bash
18 bash chef-install.sh
19
20 ADD onboarding-be-__SDC-RELEASE__.war          ${JETTY_BASE}/webapps/
21 ADD catalog-be-__SDC-RELEASE__.war             ${JETTY_BASE}/webapps/
22 RUN chown -R jetty:jetty                       ${JETTY_BASE}/webapps
23
24 COPY startup.sh /root/
25
26 RUN chmod 770 /root/startup.sh
27
28 ENTRYPOINT [ "/root/startup.sh" ]