From b1ac7253c276b1848a37f8e16d8aab93e643a97e Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Fri, 14 Dec 2018 13:00:43 -0500 Subject: Port ODL Oxygen to alpine Add new alpine-based images for OpenDaylight Oxygen container. Change-Id: I49eb198e39a4dd71736175876e2e1af0a85d5228 Issue-ID: CCSDK-841 Signed-off-by: Timoney, Dan (dt5972) --- alpine/pom.xml | 141 ++++++++++++++++++++++++++++++++++++++ alpine/src/main/docker/Dockerfile | 14 ++++ 2 files changed, 155 insertions(+) create mode 100644 alpine/pom.xml create mode 100644 alpine/src/main/docker/Dockerfile (limited to 'alpine') diff --git a/alpine/pom.xml b/alpine/pom.xml new file mode 100644 index 00000000..a60dd1a2 --- /dev/null +++ b/alpine/pom.xml @@ -0,0 +1,141 @@ + + + 4.0.0 + + + org.onap.ccsdk.distribution + distribution-root + 0.4.0-SNAPSHOT + + + distribution-alpine + 0.4.0-SNAPSHOT + pom + + ccsdk-distribution :: alpine + Creates base alpine Docker container + + openECOMP + + + + onap/ccsdk-alpine-image + ${project.version} + + + + + + + org.codehaus.groovy.maven + gmaven-plugin + + + validate + + execute + + + + println project.properties['ccsdk.project.version']; + def versionArray; + if ( project.properties['ccsdk.project.version'] != null ) { + versionArray = project.properties['ccsdk.project.version'].split('\\.'); + } + + if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) + { + project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; + } else { + project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; + } + + println 'New Tag for docker:' + + project.properties['project.docker.latesttag.version']; + + + + + + + + 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.26.0 + false + + + + + ${image.name} + + try + ${basedir}/target/docker-stage + Dockerfile + + ${project.version} + ${project.version}-STAGING-${maven.build.timestamp} + ${project.docker.latesttag.version} + + + + + + + + generate-images + generate-sources + + build + + + + + push-images + deploy + + build + push + + + + + + + + + + diff --git a/alpine/src/main/docker/Dockerfile b/alpine/src/main/docker/Dockerfile new file mode 100644 index 00000000..4bd4d476 --- /dev/null +++ b/alpine/src/main/docker/Dockerfile @@ -0,0 +1,14 @@ +# Base ubuntu with added packages needed for open ecomp +FROM alpine:3.7 +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} + +# Add tools needed for OpenDaylight +RUN apk update && apk add bash git openjdk8 maven mysql-client nodejs py-pip graphviz unzip rsync -- cgit 1.2.3-korg