blob: 983dea7dafc1f3ec5b4760d28f8cc9db3668b208 [file] [log] [blame]
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -07001FROM ubuntu:16.04
2
3MAINTAINER "The Onap Team"
4LABEL Description="This immage contains an updated ubuntu 16.04 with the openjdk installed" Version="16.04-8"
5
6ARG http_proxy
7ARG https_proxy
8ENV HTTP_PROXY=$http_proxy
9ENV HTTPS_PROXY=$https_proxy
10ENV http_proxy=$HTTP_PROXY
11ENV https_proxy=$HTTPS_PROXY
12
13RUN 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
sebdet9021eac2019-02-15 18:33:19 +010018RUN groupadd -r onap && useradd --no-log-init -r -g onap clamp
19VOLUME /opt/clamp/config
20RUN mkdir /var/log/onap
21RUN chmod a+rwx /var/log/onap
22
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020023COPY onap-clamp/clamp.jar /opt/clamp/app.jar
sebdet9021eac2019-02-15 18:33:19 +010024RUN chmod 700 /opt/clamp/app.jar
25
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020026COPY onap-clamp/startService.sh /opt/clamp/startService.sh
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070027RUN chmod 700 /opt/clamp/startService.sh
28
sebdet9021eac2019-02-15 18:33:19 +010029RUN chown -R clamp:onap /opt/clamp
30
31USER clamp
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070032WORKDIR /opt/clamp/
33ENTRYPOINT ./startService.sh