sebdet | c7e23ea | 2019-04-29 18:19:39 +0200 | [diff] [blame] | 1 | FROM openjdk:8u191-jdk-alpine3.9
|
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 2 |
|
| 3 | MAINTAINER "The Onap Team"
|
sebdet | c7e23ea | 2019-04-29 18:19:39 +0200 | [diff] [blame] | 4 | LABEL Description="This immage contains alpine, openjdk 11 and clamp"
|
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 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 |
|
sebdet | c7e23ea | 2019-04-29 18:19:39 +0200 | [diff] [blame] | 13 | RUN addgroup onap && adduser -D -G onap clamp
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame] | 14 | VOLUME /opt/clamp/config
|
| 15 | RUN mkdir /var/log/onap
|
| 16 | RUN chmod a+rwx /var/log/onap
|
| 17 |
|
Determe, Sebastien (sd378r) | e0d94f6 | 2018-05-25 15:14:08 +0200 | [diff] [blame] | 18 | COPY onap-clamp/clamp.jar /opt/clamp/app.jar
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame] | 19 | RUN chmod 700 /opt/clamp/app.jar
|
| 20 |
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame] | 21 | RUN chown -R clamp:onap /opt/clamp
|
| 22 |
|
sebdet | c7e23ea | 2019-04-29 18:19:39 +0200 | [diff] [blame] | 23 | RUN apk add fontconfig
|
| 24 | RUN apk add ttf-dejavu
|
| 25 |
|
| 26 | RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so && \
|
| 27 | ln -s /lib/libuuid.so.1 /usr/lib/libuuid.so.1 && \
|
| 28 | ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libc.musl-x86_64.so.1
|
| 29 |
|
| 30 | ENV LD_LIBRARY_PATH /usr/lib
|
| 31 |
|
sebdet | 9021eac | 2019-02-15 18:33:19 +0100 | [diff] [blame] | 32 | USER clamp
|
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 33 | WORKDIR /opt/clamp/
|
sebdet | ab7f340 | 2019-03-14 11:06:33 +0100 | [diff] [blame] | 34 | ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms256m", "-Xmx1g", "-jar" ,"./app.jar"]
|