diff options
author | Dan Timoney <dtimoney@att.com> | 2017-08-11 14:50:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-11 14:50:57 +0000 |
commit | 4fb0b03301911ff000bb2956039443048d2f368e (patch) | |
tree | 6b8d15cab0944c3dcc7435f25c908fde3c0956a0 /installation | |
parent | 74649390d13ab0fa70c6731cc4e5d1ce320a77a5 (diff) | |
parent | 8e55ec48defbf3cf93faef4cb842481e9090fc09 (diff) |
Merge "Clean up Dockerfiles"
Former-commit-id: af0f0df8ad4a87a9bdb7fc6503869c8a175e19d7
Diffstat (limited to 'installation')
-rw-r--r-- | installation/sdnc/src/main/docker/Dockerfile | 11 | ||||
-rw-r--r-- | installation/ubuntu/src/main/docker/Dockerfile | 11 |
2 files changed, 17 insertions, 5 deletions
diff --git a/installation/sdnc/src/main/docker/Dockerfile b/installation/sdnc/src/main/docker/Dockerfile index debfe834..37db15db 100644 --- a/installation/sdnc/src/main/docker/Dockerfile +++ b/installation/sdnc/src/main/docker/Dockerfile @@ -1,6 +1,8 @@ # Base ubuntu with added packages needed for open ecomp FROM openecomp/ubuntu-sdnc-image:${project.version} + MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) + ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 ENV ODL_HOME /opt/opendaylight/current ENV SDNC_CONFIG_DIR /opt/openecomp/sdnc/data/properties @@ -8,10 +10,10 @@ ENV SDNC_CONFIG_DIR /opt/openecomp/sdnc/data/properties # copy the opendaylight tar and expand COPY distribution-karaf-${sdnc.opendaylight.version}.tar.gz /tmp/ RUN mkdir /opt/opendaylight \ -&& tar zxvf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz --directory /opt/opendaylight \ -&& rm -rf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz \ -&& ln -s /opt/opendaylight/distribution-karaf-${sdnc.opendaylight.version} /opt/opendaylight/current \ -&& mkdir /opt/openecomp + && tar zxvf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz --directory /opt/opendaylight \ + && rm -rf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz \ + && ln -s /opt/opendaylight/distribution-karaf-${sdnc.opendaylight.version} /opt/opendaylight/current \ + && mkdir /opt/openecomp COPY idmlight.db.mv.db /opt/opendaylight/current @@ -22,5 +24,6 @@ RUN ln -s /opt/openecomp/sdnc /opt/sdnc # workaround till we get proxy working RUN mkdir -p /opt/opendaylight/current/system/mysql/mysql-connector-java/${sdnc.mysql-connector-java.version} COPY mysql-connector-java-${sdnc.mysql-connector-java.version}.jar /opt/opendaylight/current/system/mysql/mysql-connector-java/${sdnc.mysql-connector-java.version} + # ENTRYPOINT exec /opt/opendaylight/current/bin/karaf EXPOSE 8181 diff --git a/installation/ubuntu/src/main/docker/Dockerfile b/installation/ubuntu/src/main/docker/Dockerfile index 7d8e6eb3..d53240f3 100644 --- a/installation/ubuntu/src/main/docker/Dockerfile +++ b/installation/ubuntu/src/main/docker/Dockerfile @@ -12,4 +12,13 @@ RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\ if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi # Add tools needed for OpenDaylight -RUN apt-get update && apt-get install -y git openjdk-8-jdk maven mysql-client nodejs nodejs-legacy python-pip graphviz npm unzip +RUN apt-get update && apt-get install -y git \ + graphviz \ + openjdk-8-jdk \ + maven \ + mysql-client + nodejs \ + nodejs-legacy \ + npm \ + python-pip \ + unzip |