diff options
author | Dan Timoney <dtimoney@att.com> | 2017-08-10 16:59:02 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2017-08-11 13:59:52 -0400 |
commit | e50df7d897d144f03e364d600e94b526656a8c4e (patch) | |
tree | 0da4d26ade4846b243a37dbd0da8a1cfcebec190 /opendaylight/src | |
parent | 73be2117cb63d51b394835a39c9e2df3379d4f0e (diff) |
Create base OpenDaylight container
Create base ODL Carbon docker container, based on base Ubuntu docker container
Change-Id: I11873727a6a436ff6ecc6113c927ab07f99a67a3
Issue-ID: CCSDK-27
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'opendaylight/src')
-rw-r--r-- | opendaylight/src/main/docker/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/opendaylight/src/main/docker/Dockerfile b/opendaylight/src/main/docker/Dockerfile new file mode 100644 index 00000000..35d1277b --- /dev/null +++ b/opendaylight/src/main/docker/Dockerfile @@ -0,0 +1,19 @@ +# Base ubuntu with added packages needed for open ecomp +FROM onap/ccsdk-ubuntu-image:${project.version} +MAINTAINER CCSDK Team (onap-ccsdk@lists.openecomp.org) +ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 +ENV ODL_HOME /opt/opendaylight/current + +# copy the opendaylight tar and expand +COPY distribution-karaf-${ccsdk.opendaylight.version}.tar.gz /tmp/ +RUN mkdir /opt/opendaylight \ + && tar zxvf /tmp/distribution-karaf-${ccsdk.opendaylight.version}.tar.gz --directory /opt/opendaylight \ + && rm -rf /tmp/distribution-karaf-${ccsdk.opendaylight.version}.tar.gz \ + && ln -s /opt/opendaylight/distribution-karaf-${ccsdk.opendaylight.version} /opt/opendaylight/current + + +# workaround till we get proxy working +RUN mkdir -p /opt/opendaylight/current/system/mysql/mysql-connector-java/${ccsdk.mysql-connector-java.version} +COPY mysql-connector-java-${ccsdk.mysql-connector-java.version}.jar /opt/opendaylight/current/system/mysql/mysql-connector-java/${ccsdk.mysql-connector-java.version} +# ENTRYPOINT exec /opt/opendaylight/current/bin/karaf +EXPOSE 8181 |