Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1 | FROM jetty:9.3-jre8 |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 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 |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 17 | RUN curl -L https://omnitruck.chef.io/install.sh | bash |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 18 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 19 | ADD onboarding-be-*.war ${JETTY_BASE}/webapps/ |
| 20 | ADD catalog-be-*.war ${JETTY_BASE}/webapps/ |
Tal Gitelman | 68ccc45 | 2017-06-22 18:23:07 +0300 | [diff] [blame] | 21 | ADD api-docs.war ${JETTY_BASE}/webapps/ |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 22 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps |
| 23 | |
| 24 | COPY startup.sh /root/ |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 25 | RUN chmod 770 /root/startup.sh |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 26 | ENTRYPOINT [ "/root/startup.sh" ] |