Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 1 | FROM ubuntu:16.04
|
| 2 |
|
| 3 | MAINTAINER "The Onap Team"
|
| 4 | LABEL Description="This immage contains an updated ubuntu 16.04 with the openjdk installed" Version="16.04-8"
|
| 5 |
|
| 6 | ARG http_proxy
|
| 7 | ARG https_proxy
|
| 8 | ENV HTTP_PROXY=$http_proxy
|
| 9 | ENV HTTPS_PROXY=$https_proxy
|
| 10 | ENV http_proxy=$HTTP_PROXY
|
| 11 | ENV https_proxy=$HTTPS_PROXY
|
| 12 |
|
| 13 | RUN test -n "$http_proxy" && echo "Acquire::Proxy \"http://$http_proxy\";" > /etc/apt/apt.conf.d/02proxy || true && \
|
| 14 | apt-get update && \
|
| 15 | apt-get -y dist-upgrade && \
|
| 16 | apt-get install -y openjdk-8-jre-headless
|
| 17 |
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame^] | 18 | RUN groupadd -r onap && useradd --no-log-init -r -g onap clamp
|
| 19 | VOLUME /opt/clamp/config
|
| 20 | RUN mkdir /var/log/onap
|
| 21 | RUN chmod a+rwx /var/log/onap
|
| 22 |
|
Determe, Sebastien (sd378r) | e0d94f6 | 2018-05-25 15:14:08 +0200 | [diff] [blame] | 23 | COPY onap-clamp/clamp.jar /opt/clamp/app.jar
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame^] | 24 | RUN chmod 700 /opt/clamp/app.jar
|
| 25 |
|
Determe, Sebastien (sd378r) | e0d94f6 | 2018-05-25 15:14:08 +0200 | [diff] [blame] | 26 | COPY onap-clamp/startService.sh /opt/clamp/startService.sh
|
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 27 | RUN chmod 700 /opt/clamp/startService.sh
|
| 28 |
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame^] | 29 | RUN chown -R clamp:onap /opt/clamp
|
| 30 |
|
| 31 | USER clamp
|
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 32 | WORKDIR /opt/clamp/
|
| 33 | ENTRYPOINT ./startService.sh
|