Single docker image with default feature
[integration/packaging.git] / odl-docker / install_docker.sh
index 7dae6c420a295e58e79f58026491206c8edfc24e..75ab619a582ce55b7e6953c5de533d366f62350b 100755 (executable)
@@ -1,12 +1,21 @@
 #!/bin/bash
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2021 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
 set -x
 
-VERSION="0.14.1"
-FEATURES="odl-restconf,odl-netconf-topology"
+VERSION="14.1.0"
 BASEDIR=$(dirname "$0")
 
-wget --progress=dot:mega -P /tmp https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/onap-karaf/${VERSION}/onap-karaf-${VERSION}.tar.gz
-tar xzf /tmp/onap-karaf-${VERSION}.tar.gz --directory ${BASEDIR}
-mv ${BASEDIR}/onap-karaf-${VERSION} ${BASEDIR}/opendaylight
-sed -i "s/\(featuresBoot= \|featuresBoot = \)/featuresBoot = ${FEATURES},/g" ${BASEDIR}/opendaylight/etc/org.apache.karaf.features.cfg
-cat ${BASEDIR}/opendaylight/etc/org.apache.karaf.features.cfg
+wget --progress=dot:mega -P /tmp https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/opendaylight/${VERSION}/opendaylight-${VERSION}.tar.gz
+tar xzf /tmp/opendaylight-${VERSION}.tar.gz --directory ${BASEDIR}
+rm /tmp/opendaylight-${VERSION}.tar.gz
+mv ${BASEDIR}/opendaylight-${VERSION} ${BASEDIR}/opendaylight
+cp ${BASEDIR}/start_docker.sh ${BASEDIR}/opendaylight