diff options
author | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-06-22 17:05:16 -0400 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-06-22 17:05:16 -0400 |
commit | e14a02086c9119532f9153c78346d5c1d6789ca9 (patch) | |
tree | 05b612b7b008fc947dc2a11e315df70b1d045afd /opendaylight/oxygen/src | |
parent | 6f0c0101dcb421c75a1a49bea02d1dc7479ef7d1 (diff) |
Improve odlsli startup time
Improved odlsli startup time by moving feature installation to build
time, using ansible-opendaylight.
Change-Id: I3f846da70e9aa0b8ce818ff83811c1b52aef1436
Issue-ID: CCSDK-285
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'opendaylight/oxygen/src')
-rw-r--r-- | opendaylight/oxygen/src/main/docker/Dockerfile | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/opendaylight/oxygen/src/main/docker/Dockerfile b/opendaylight/oxygen/src/main/docker/Dockerfile index f5c2324c..93811de9 100644 --- a/opendaylight/oxygen/src/main/docker/Dockerfile +++ b/opendaylight/oxygen/src/main/docker/Dockerfile @@ -6,14 +6,17 @@ ENV ODL_HOME /opt/opendaylight/current # copy the opendaylight tar and expand COPY karaf-${ccsdk.opendaylight.version}.tar.gz /tmp/ -RUN mkdir /opt/opendaylight \ - && tar zxvf /tmp/karaf-${ccsdk.opendaylight.version}.tar.gz --directory /opt/opendaylight \ +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/opendaylight/karaf-${ccsdk.opendaylight.version} /opt/opendaylight/current \ - && ln -s /opt/opendaylight/current /opt/opendaylight/karaf-${ccsdk.opendaylight.version} + && 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/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version} -COPY mariadb-java-client-${ccsdk.mariadb-connector-java.version}.jar /opt/opendaylight/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version} -# ENTRYPOINT exec /opt/opendaylight/current/bin/karaf +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 |