From b10781439dba48f4c39def83a34699a8343ceaa5 Mon Sep 17 00:00:00 2001 From: Carsten Lund Date: Tue, 9 May 2017 20:07:50 +0000 Subject: [UCA-10] support for non standard MTU Change-Id: I29a6d2358169a94d22b2611e077a9a095654fc93 Signed-off-by: Carsten Lund --- docker-compose.yml | 5 +++++ init.sh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 34356ce..7a2a96d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,9 @@ version: '2' +networks: + default: + driver: bridge + driver_opts: + com.docker.network.driver.mtu: MTU services: dcae-controller: image: DOCKER-REGISTRY/openecomp/dcae-controller:DCAE-VERSION diff --git a/init.sh b/init.sh index 5ea0696..960d4fd 100644 --- a/init.sh +++ b/init.sh @@ -4,6 +4,7 @@ U=$(grep NEXUS-USER /opt/app/dcae-controller/config.yaml | sed s/NEXUS-USER:.//) P=$(grep NEXUS-PASSWORD /opt/app/dcae-controller/config.yaml | sed s/NEXUS-PASSWORD:.//) D=$(grep DOCKER-REGISTRY /opt/app/dcae-controller/config.yaml | sed s/DOCKER-REGISTRY:.//) V=$(grep DCAE-VERSION /opt/app/dcae-controller/config.yaml | sed s/DCAE-VERSION:.//) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) if [ "$V" == "" ]; then V=1.0.0; fi @@ -14,3 +15,4 @@ sed -i s/DCAE-VERSION/$V/ Makefile sed -i s/DOCKER-REGISTRY/$D/ docker-compose.yml sed -i s/DCAE-VERSION/$V/ docker-compose.yml +sed -i s/MTU/$MTU/ docker-compose.yml -- cgit 1.2.3-korg