aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml5
-rw-r--r--init.sh2
2 files changed, 7 insertions, 0 deletions
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