From acae402ff4f744a11341b2b7f1c17f83dca92465 Mon Sep 17 00:00:00 2001 From: Joanna Jeremicz Date: Thu, 20 Feb 2020 08:47:25 +0100 Subject: Create Dockerfile - Added Dockerfile to certServiceClient - Added docker maven profile to certServiceClient Issue-ID: AAF-996 Signed-off-by: Joanna Jeremicz Change-Id: I97e81ca24030cbc305b8aa55d1fec51d8eb94959 --- certServiceClient/Dockerfile | 13 +++++++ certServiceClient/pom.xml | 87 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 certServiceClient/Dockerfile diff --git a/certServiceClient/Dockerfile b/certServiceClient/Dockerfile new file mode 100644 index 00000000..8b2d1700 --- /dev/null +++ b/certServiceClient/Dockerfile @@ -0,0 +1,13 @@ +FROM docker.io/openjdk:11-jre-slim + +ARG VERSION=${version} + +RUN groupadd certServiceClient && useradd -g certServiceClient certServiceClient + +RUN chown -R certServiceClient:certServiceClient /var/log + +USER certServiceClient:certServiceClient + +COPY target/aaf-certservice-client-${VERSION}.jar ./opt/onap/aaf/certservice/aaf-certservice-client.jar + +ENTRYPOINT ["echo","================================ THIS IS CERT-SERVICE-CLIENT CONTAINER RUNNING ================================"] diff --git a/certServiceClient/pom.xml b/certServiceClient/pom.xml index 84c33c72..50ae0446 100644 --- a/certServiceClient/pom.xml +++ b/certServiceClient/pom.xml @@ -24,6 +24,91 @@ + + + docker-staging + + ${project.version}-STAGING-${maven.build.timestamp} + ${project.version}-STAGING-latest + + + + + docker + + false + + + linux + x86_64 + ${os.detected.name}-${os.detected.arch} + + + + + io.fabric8 + docker-maven-plugin + ${docker-maven-plugin.version} + + + docker-build-image + package + + build + + + + docker-push-image + deploy + + push + + + + + ${skipDockerPush} + true + IfNotPresent + + + ${project.artifactId} + ${docker-image.namespace}/${docker-image.name} + + ${docker-image.registry} + + ${project.basedir} + + ${project.version}-${maven.build.timestamp}Z + ${project.version} + ${docker-image.latest} + + + + + + + + + + + + + + ecomp-releases + AAF Release Repository + ${nexusproxy}${releaseNexusPath} + + + ecomp-snapshots + AAF Snapshot Repository + ${nexusproxy}${snapshotNexusPath} + + + ecomp-site + dav:${nexusproxy}${sitePath} + + + org.mockito @@ -45,8 +130,6 @@ org.assertj assertj-core - - \ No newline at end of file -- cgit 1.2.3-korg