diff options
author | Carsten Lund <lund@research.att.com> | 2017-05-09 20:07:50 +0000 |
---|---|---|
committer | Carsten Lund <lund@research.att.com> | 2017-05-09 20:07:50 +0000 |
commit | b10781439dba48f4c39def83a34699a8343ceaa5 (patch) | |
tree | dd5bdebb93ae6ad958aa70aafb7a6174f39d1476 | |
parent | 5ac721296a44000c37f4ea2f76c39c2cbbf84e16 (diff) |
[UCA-10] support for non standard MTU
Change-Id: I29a6d2358169a94d22b2611e077a9a095654fc93
Signed-off-by: Carsten Lund <lund@research.att.com>
-rw-r--r-- | docker-compose.yml | 5 | ||||
-rw-r--r-- | init.sh | 2 |
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 @@ -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 |