diff options
Diffstat (limited to 'kubernetes/config/docker/init/src/config/message-router/dcae-startup-vm-message-router/deploy.sh')
-rwxr-xr-x | kubernetes/config/docker/init/src/config/message-router/dcae-startup-vm-message-router/deploy.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/kubernetes/config/docker/init/src/config/message-router/dcae-startup-vm-message-router/deploy.sh b/kubernetes/config/docker/init/src/config/message-router/dcae-startup-vm-message-router/deploy.sh deleted file mode 100755 index b1f9ebdf77..0000000000 --- a/kubernetes/config/docker/init/src/config/message-router/dcae-startup-vm-message-router/deploy.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -set -e - -# do not change this, it is already matched with the git repo file structure -DOCKER_FILE_DIR='./docker_files' - -KAFKA_VERSION='0.8.1.1' -SCALA_VERSION='2.9.2' -wget -q "http://www.namesdir.com/mirrors/apache/kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" \ - -O "./docker_files/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" - -# 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 - -echo "starting docker operations" -${DOCKER_COMPOSE_EXE} up -d |