From 707c6a1ab19a63dcbf375bf7c1ee503ea69ac5f0 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Tue, 24 Sep 2019 16:04:42 -0400 Subject: Create ONAP-specific ODL distro Instead of using OpenDaylight tarball, create custom ONAP ODL distribution that only contains the components used by SDNC and/or APPC Change-Id: I8871326002ab0e51c0271b937c5d91628a3172d9 Issue-ID: CCSDK-1753 Signed-off-by: Timoney, Dan (dt5972) --- opendaylight/fluorine/fluorine-alpine/pom.xml | 183 --------------------- .../fluorine-alpine/src/main/docker/Dockerfile | 33 ---- 2 files changed, 216 deletions(-) delete mode 100644 opendaylight/fluorine/fluorine-alpine/pom.xml delete mode 100644 opendaylight/fluorine/fluorine-alpine/src/main/docker/Dockerfile (limited to 'opendaylight/fluorine/fluorine-alpine') diff --git a/opendaylight/fluorine/fluorine-alpine/pom.xml b/opendaylight/fluorine/fluorine-alpine/pom.xml deleted file mode 100644 index ca2d2270..00000000 --- a/opendaylight/fluorine/fluorine-alpine/pom.xml +++ /dev/null @@ -1,183 +0,0 @@ - - - 4.0.0 - - - org.onap.ccsdk.distribution - distribution-odl-fluorine - 0.5.2-SNAPSHOT - - - distribution-odl-fluorine-alpine - 0.5.2-SNAPSHOT - pom - - ccsdk-distribution :: opendaylight :: ${project.artifactId} - Creates OpenDaylight container - - ONAP - - - - onap/ccsdk-odl-fluorine-alpine-image - - - - - - - org.codehaus.groovy.maven - gmaven-plugin - - - validate - - execute - - - ${basedir}/../../../src/main/scripts/TagVersion.groovy - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 3.0.0 - - - get-odl-distribution - validate - - copy - - - - - org.opendaylight.integration - karaf - ${ccsdk.opendaylight.version} - tar.gz - - true - ${basedir}/target/docker-stage - - - false - true - true - - - - - get-mariadb-connector-jar - validate - - copy - - - - - org.mariadb.jdbc - mariadb-java-client - ${ccsdk.mariadb-connector-java.version} - jar - true - ${basedir}/target/docker-stage - - - false - true - true - - - - - - - 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 - package - - build - - - - - push-images - ${docker.push.phase} - - build - push - - - - - - - - - - - diff --git a/opendaylight/fluorine/fluorine-alpine/src/main/docker/Dockerfile b/opendaylight/fluorine/fluorine-alpine/src/main/docker/Dockerfile deleted file mode 100644 index b5e91b92..00000000 --- a/opendaylight/fluorine/fluorine-alpine/src/main/docker/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -# Prepare stage for multistage image build -## START OF STAGE0 ## -FROM onap/ccsdk-alpine-image:${project.docker.latestfulltag.version} AS stage0 - -# Add the opendaylight's karaf and expand -ADD karaf-${ccsdk.opendaylight.version}.tar.gz /opt/odl -RUN mv /opt/odl/karaf-${ccsdk.opendaylight.version} /opt/opendaylight \ - && ln -s /opt/opendaylight /opt/opendaylight/karaf-${ccsdk.opendaylight.version} \ - && ln -s /opt/opendaylight /opt/opendaylight/current \ - && rmdir /opt/odl -## END OF STAGE0 ## - - -FROM onap/ccsdk-alpine-image:${project.docker.latestfulltag.version} - -MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org) - -ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk -ENV ODL_HOME /opt/opendaylight/current - -# Create odl user -RUN addgroup -S odl -RUN adduser -S odl -G odl -RUN addgroup odl wheel - -COPY --from=stage0 --chown=odl:odl /opt /opt - -# workaround till we get proxy working -RUN mkdir -p /opt/opendaylight/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version} -COPY mariadb-java-client-${ccsdk.mariadb-connector-java.version}.jar /opt/opendaylight/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version} - -# ENTRYPOINT exec /opt/opendaylight/bin/karaf -EXPOSE 8181 -- cgit 1.2.3-korg