Areli, Fuss (af732p) | f5c0512 | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 1 | FROM onap/base_sdc-jetty:1.2.0-SNAPSHOT-latest |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 2 | |
| 3 | COPY chef-solo /var/opt/dcae-fe/chef-solo/ |
| 4 | |
| 5 | COPY startup.sh /var/opt/dcae-fe/ |
| 6 | |
| 7 | ADD target/dcae_*.war ${JETTY_BASE}/webapps/ |
| 8 | |
| 9 | USER root |
| 10 | |
| 11 | RUN mkdir -p /opt/logs/fe |
| 12 | |
| 13 | COPY set_user.sh /tmp/set_user.sh |
| 14 | |
| 15 | RUN sh -x /tmp/set_user.sh && rm -f /tmp/set_user.sh |
| 16 | |
| 17 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps /var/opt/dcae-fe /opt/logs /var/lib/jetty |
| 18 | |
| 19 | RUN chmod 770 /var/opt/dcae-fe/startup.sh |
| 20 | |
| 21 | EXPOSE 8082 8444 |
| 22 | |
| 23 | USER jetty |
| 24 | |
| 25 | ENTRYPOINT [ "/var/opt/dcae-fe/startup.sh" ] |
| 26 | |