diff options
author | 2021-07-23 19:15:53 +0100 | |
---|---|---|
committer | 2021-08-09 17:22:44 +0100 | |
commit | 0beea783cef8a84d8bc2655ea678e00d459cc831 (patch) | |
tree | afa6b459a7f46910566dfce2d39a30ebe84d60e2 /demo/deploy.sh | |
parent | 49b2a82292f8be3b73fe7460573260d47b5c2b98 (diff) |
[DMAAP-MR] Remove redundant data
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I56a8417f72d892705230e94f079db3024170e884
Issue-ID: DMAAP-1638
Diffstat (limited to 'demo/deploy.sh')
-rw-r--r-- | demo/deploy.sh | 38 |
1 files changed, 0 insertions, 38 deletions
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 |