summaryrefslogtreecommitdiffstats
path: root/boot/dcae2_install.sh
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-11-21 15:18:10 -0500
committerLusheng Ji <lji@research.att.com>2017-11-21 15:18:59 -0500
commita75ed9aa10de1b3afd53839dbf5e7ccfc49c3a21 (patch)
tree13c6e6fd55705f8e48d732fc31e4ef7fb62887da /boot/dcae2_install.sh
parentd545f67c16bbfa6877aad48664218c30cc83c193 (diff)
Load updated MTU to systemd deps for docker
Issue-Id: DCAEGEN2-192 Change-Id: Idfccf5cb0b540ce9beb1d616e1d9f30252029175 Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'boot/dcae2_install.sh')
-rw-r--r--boot/dcae2_install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/dcae2_install.sh b/boot/dcae2_install.sh
index 99cfd34d..3c84c62d 100644
--- a/boot/dcae2_install.sh
+++ b/boot/dcae2_install.sh
@@ -56,7 +56,7 @@ update-rc.d dcae2_serv.sh defaults
# Download and install docker-engine and docker-compose
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
-apt-get install -y "linux-image-extra-$(uname -r)" linux-image-extra-virtual
+apt-get install -y "linux-image-extra-$(uname -r)" linux-image-extra-virtual jq
apt-get install -y --allow-unauthenticated docker-engine
mkdir -p /opt/docker
@@ -79,6 +79,7 @@ echo "DOCKER_OPTS=\"$DNS_FLAG--mtu=$MTU\"" >> /etc/default/docker
cp /lib/systemd/system/docker.service /etc/systemd/system
sed -i "/ExecStart/s/$/ --mtu=$MTU/g" /etc/systemd/system/docker.service
+systemctl daemon-reload
service docker restart
@@ -114,7 +115,7 @@ wget -P /opt/app/inputs-templates https://nexus.onap.org/service/local/repositor
# generate blueprint input files
-pip install jinja2
+pip install --upgrade jinja2
wget https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.deployments/releases/scripts/detemplate-bpinputs.py && (python detemplate-bpinputs.py /opt/config /opt/app/inputs-templates /opt/app/config; rm detemplate-bpinputs.py)