diff options
author | 2021-08-19 14:22:28 +0200 | |
---|---|---|
committer | 2021-08-19 14:25:00 +0200 | |
commit | 12ffa26e6eba35594982f34e28e4252545e89adf (patch) | |
tree | baf1723be8aec5d99739f33aa22f9f7df35367d7 /artifactbroker/packages | |
parent | ea5bacc42ac62db03f96c18719ebedeb8d592d5c (diff) |
Removed java 8 and GPLv3
Removed java 8 and GPLv3
Issue-ID: MULTICLOUD-1334
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I144a0363a300960e922c19d0f7995afb756dfb5d
Diffstat (limited to 'artifactbroker/packages')
-rw-r--r-- | artifactbroker/packages/docker/Dockerfile | 18 | ||||
-rw-r--r-- | artifactbroker/packages/docker/artifact-dist.sh | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/artifactbroker/packages/docker/Dockerfile b/artifactbroker/packages/docker/Dockerfile index d107dce..5997328 100644 --- a/artifactbroker/packages/docker/Dockerfile +++ b/artifactbroker/packages/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM adoptopenjdk/openjdk11:jre-11.0.8_10-alpine +FROM nexus3.onap.org:10001/onap/integration-java11:9.0.0 ARG HTTP_PROXY=${HTTP_PROXY} ARG HTTPS_PROXY=${HTTPS_PROXY} @@ -13,13 +13,12 @@ ENV ARTIFACT_LOGS ${ARTIFACT_LOGS} ENV ARTIFACT_HOME=/opt/app/ ENV ARTIFACT_DISTRIBUTION_HOME=${ARTIFACT_HOME}/distribution -EXPOSE 9014 +USER root -RUN apk add --no-cache --update busybox-extras bash nss procps coreutils findutils grep zip unzip \ - curl wget openssh maven jq httpie py-pip +EXPOSE 9014 -RUN addgroup -S onap && \ - adduser -S --shell /bin/bash -G onap onap +RUN apk add --no-cache mlocate nss zip unzip jq procps \ + curl openssh RUN mkdir -p ${ARTIFACT_DISTRIBUTION_HOME} ${ARTIFACT_LOGS} ${ARTIFACT_HOME}/etc/ssl && \ chown -R onap:onap ${ARTIFACT_HOME} ${ARTIFACT_DISTRIBUTION_HOME} ${ARTIFACT_LOGS} @@ -29,13 +28,14 @@ COPY ./multicloud-framework-artifactbroker-*.zip multicloud-framework-artifactbr RUN unzip -q -o -B multicloud-framework-artifactbroker.zip && \ rm -f multicloud-framework-artifactbroker.zip COPY artifact-dist.sh bin/. -#RUN tar xvfz /packages/policy-distribution.tar.gz --directory ${ARTIFACT_DISTRIBUTION_HOME} -#RUN rm /packages/policy-distribution.tar.gz RUN chmod +x bin/*.sh && \ cp ${ARTIFACT_DISTRIBUTION_HOME}/etc/ssl/* ${ARTIFACT_HOME}/etc/ssl && \ chown onap:onap ${ARTIFACT_HOME}/etc/ssl/* +RUN updatedb + USER onap + WORKDIR ${ARTIFACT_DISTRIBUTION_HOME}/bin -ENTRYPOINT [ "bash", "./artifact-dist.sh" ] +ENTRYPOINT [ "sh", "./artifact-dist.sh" ] diff --git a/artifactbroker/packages/docker/artifact-dist.sh b/artifactbroker/packages/docker/artifact-dist.sh index 1ab79c5..0d21699 100644 --- a/artifactbroker/packages/docker/artifact-dist.sh +++ b/artifactbroker/packages/docker/artifact-dist.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # ============LICENSE_START======================================================= # Copyright (C) 2018 Ericsson. All rights reserved. |