Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | FROM jetty |
| 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 | ENV BASE_NEXUS zl999y:ChangeMe@10.208.197.75:8443/repository/maven-public/org/openecomp/sdc |
| 17 | |
| 18 | # install chef-solo |
| 19 | RUN curl -L https://www.opscode.com/chef/install.sh | bash |
| 20 | |
| 21 | #ADD https://${BASE_NEXUS}/api-docs/1610.0.0-SNAPSHOT/api-docs-1610.0.0-20161211.143739-1.war /var/lib/jetty/webapps/ |
| 22 | ADD onboarding-be-__SDC-RELEASE__.war /var/lib/jetty/webapps/ |
| 23 | ADD catalog-be-__SDC-RELEASE__.war /var/lib/jetty/webapps/ |
| 24 | RUN chown -R jetty:jetty /var/lib/jetty/webapps |
| 25 | |
| 26 | COPY startup.sh /root/ |
| 27 | |
| 28 | RUN chmod 770 /root/startup.sh |
| 29 | |
| 30 | ENTRYPOINT [ "/root/startup.sh" ] |