From 0beea783cef8a84d8bc2655ea678e00d459cc831 Mon Sep 17 00:00:00 2001 From: efiacor Date: Fri, 23 Jul 2021 19:15:53 +0100 Subject: [DMAAP-MR] Remove redundant data Signed-off-by: efiacor Change-Id: I56a8417f72d892705230e94f079db3024170e884 Issue-ID: DMAAP-1638 --- demo/deploy.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 demo/deploy.sh (limited to 'demo/deploy.sh') diff --git a/demo/deploy.sh b/demo/deploy.sh deleted file mode 100644 index 6461817..0000000 --- a/demo/deploy.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -set -e - -export NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) - -# do not change this, it is already matched with the git repo file structure -DOCKER_FILE_DIR='./docker_files' - -# commands to run docker and docker-compose -DOCKER_COMPOSE_EXE='/opt/docker/docker-compose' - -cd "${DOCKER_FILE_DIR}" - -while ! ifconfig |grep "docker0" > /dev/null; - do sleep 1 - echo 'waiting for docker operational' -done - -echo "prep any files with local configurations" -if ls __* 1> /dev/null 2>&1; then - IP_DOCKER0=$(ifconfig docker0 |grep "inet addr" | cut -d: -f2 |cut -d" " -f1) - TEMPLATES=$(ls -1 __*) - for TEMPLATE in $TEMPLATES - do - FILENAME=${TEMPLATE//_} - if [ ! -z "${IP_DOCKER0}" ]; then - sed -e "s/{{ ip.docker0 }}/${IP_DOCKER0}/" "$TEMPLATE" > "$FILENAME" - fi - done -fi - -if [ -z "$MTU" ]; then - export MTU=$(ifconfig docker0 |grep MTU |sed -e 's/.*MTU://' -e 's/\s.*$//') -fi - -echo "starting docker operations" -${DOCKER_COMPOSE_EXE} up -d --build -- cgit 1.2.3-korg