From 4ddb1e9253f563fe488b0339e0d9eb02004fb2da Mon Sep 17 00:00:00 2001 From: Michael Dürre Date: Mon, 29 Jun 2020 09:59:57 +0200 Subject: add java 11 alpine image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit parallel alpine image with java 11 installed Issue-ID: CCSDK-2484 Signed-off-by: Michael Dürre Change-Id: Ia20a2175ee623f2400327b9fc25265c464780e65 --- alpine/java11/pom.xml | 126 +++++++++++++++++++++++++++++++ alpine/java11/src/main/docker/Dockerfile | 16 ++++ 2 files changed, 142 insertions(+) create mode 100644 alpine/java11/pom.xml create mode 100644 alpine/java11/src/main/docker/Dockerfile (limited to 'alpine/java11') diff --git a/alpine/java11/pom.xml b/alpine/java11/pom.xml new file mode 100644 index 00000000..2a32b40c --- /dev/null +++ b/alpine/java11/pom.xml @@ -0,0 +1,126 @@ + + + 4.0.0 + + + org.onap.ccsdk.distribution + distribution-root + 1.0.0-SNAPSHOT + + + distribution-j11-alpine + 1.0.0-SNAPSHOT + pom + + ccsdk-distribution :: alpine :: java11 + Creates base alpine Docker container + + openECOMP + + + + onap/ccsdk-alpine-j11-image + ${project.version} + ${maven.build.timestamp} + + + + + + + org.codehaus.groovy.maven + gmaven-plugin + + + validate + + execute + + + ${basedir}/../../src/main/scripts/TagVersion.groovy + + + + + + + maven-resources-plugin + 2.6 + + + copy-dockerfile + + copy-resources + + validate + + ${basedir}/target/docker-stage + + + src/main/docker + + Dockerfile + + true + + + + + + + + + + + + docker + + + + io.fabric8 + docker-maven-plugin + 0.28.0 + false + + + + + ${image.name} + + try + ${basedir}/target/docker-stage + Dockerfile + + ${project.docker.latestminortag.version} + ${project.docker.latestfulltag.version} + ${project.docker.latesttagtimestamp.version} + + + + + + + + generate-images + generate-sources + + build + + + + + push-images + deploy + + build + push + + + + + + + + + + diff --git a/alpine/java11/src/main/docker/Dockerfile b/alpine/java11/src/main/docker/Dockerfile new file mode 100644 index 00000000..9a993e91 --- /dev/null +++ b/alpine/java11/src/main/docker/Dockerfile @@ -0,0 +1,16 @@ +# Base alpine with added packages needed for open ecomp +FROM alpine:3.12 +MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org) + +ARG HTTP_PROXY +ARG HTTPS_PROXY + +ENV HTTP_PROXY ${HTTP_PROXY} +ENV http_proxy ${HTTP_PROXY} +ENV HTTPS_PROXY ${HTTPS_PROXY} +ENV https_proxy ${HTTPS_PROXY} + +ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk +# Add tools needed for OpenDaylight +RUN apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \ + && apk update && apk --no-cache add bash git openjdk11 maven mysql-client nodejs python3 graphviz unzip rsync nss \ No newline at end of file -- cgit 1.2.3-korg