diff options
-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 |