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 ---- opendaylight/fluorine/fluorine-ubuntu/pom.xml | 184 --------------------- .../fluorine-ubuntu/src/main/docker/Dockerfile | 22 --- opendaylight/fluorine/pom.xml | 50 ------ 5 files changed, 472 deletions(-) delete mode 100644 opendaylight/fluorine/fluorine-alpine/pom.xml delete mode 100644 opendaylight/fluorine/fluorine-alpine/src/main/docker/Dockerfile delete mode 100644 opendaylight/fluorine/fluorine-ubuntu/pom.xml delete mode 100644 opendaylight/fluorine/fluorine-ubuntu/src/main/docker/Dockerfile delete mode 100644 opendaylight/fluorine/pom.xml (limited to 'opendaylight/fluorine') 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 diff --git a/opendaylight/fluorine/fluorine-ubuntu/pom.xml b/opendaylight/fluorine/fluorine-ubuntu/pom.xml deleted file mode 100644 index b3a1be76..00000000 --- a/opendaylight/fluorine/fluorine-ubuntu/pom.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - 4.0.0 - - - org.onap.ccsdk.distribution - distribution-odl-fluorine - 0.5.2-SNAPSHOT - - - distribution-odl-fluorine-ubuntu - 0.5.2-SNAPSHOT - pom - - ccsdk-distribution :: opendaylight :: ${project.artifactId} - Creates OpenDaylight container - - ONAP - - - - onap/ccsdk-odl-fluorine-ubuntu-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-ubuntu/src/main/docker/Dockerfile b/opendaylight/fluorine/fluorine-ubuntu/src/main/docker/Dockerfile deleted file mode 100644 index 9c9fec0f..00000000 --- a/opendaylight/fluorine/fluorine-ubuntu/src/main/docker/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -# Base ubuntu with added packages needed for open ecomp -FROM onap/ccsdk-ubuntu-image:${project.docker.latestfulltag.version} -MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org) -ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 -ENV ODL_HOME /opt/opendaylight/current - -# copy the opendaylight tar and expand -COPY karaf-${ccsdk.opendaylight.version}.tar.gz /tmp/ -RUN mkdir /opt/odl \ - && tar zxvf /tmp/karaf-${ccsdk.opendaylight.version}.tar.gz --directory /opt/odl \ - && rm -rf /tmp/karaf-${ccsdk.opendaylight.version}.tar.gz \ - && 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 - - -# 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 diff --git a/opendaylight/fluorine/pom.xml b/opendaylight/fluorine/pom.xml deleted file mode 100644 index bae95c24..00000000 --- a/opendaylight/fluorine/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - 4.0.0 - - - org.onap.ccsdk.distribution - distribution-opendaylight - 0.5.2-SNAPSHOT - - - distribution-odl-fluorine - 0.5.2-SNAPSHOT - pom - - ccsdk-distribution :: opendaylight - Creates OpenDaylight container - - - ${project.version} - ${maven.build.timestamp} - 0.9.2 - 2.1.1 - ${https_proxy} - deploy - - - - - - org.opendaylight.integration - karaf - ${ccsdk.opendaylight.version} - tar.gz - - - org.mariadb.jdbc - mariadb-java-client - ${ccsdk.mariadb-connector-java.version} - jar - - - - - - - - fluorine-ubuntu - fluorine-alpine - - -- cgit 1.2.3-korg