summaryrefslogtreecommitdiffstats
path: root/conductor
diff options
context:
space:
mode:
authorIkram Ikramullah (ikram@research.att.com) <ikram@research.att.com>2018-03-12 12:39:31 -0400
committerIkram Ikramullah (ikram@research.att.com) <ikram@research.att.com>2018-03-12 12:40:13 -0400
commitbfcbea292aa9e9c3e01bddd1cba80035c85df8ec (patch)
tree6d1271fea31e0fab1ec8e52502cdbf85a2c2b18f /conductor
parentbe08ec28dc94e6a5b3bd21c422dd90a28a5a979e (diff)
Moved all docker files moved to main folder
Issue-ID: OPTFRA-123 Change-Id: I9334bda9ef05ed18c4e1fe35616b53e9ba128dc1 Signed-off-by: Ikram Ikramullah (ikram@research.att.com) <ikram@research.att.com>
Diffstat (limited to 'conductor')
-rwxr-xr-xconductor/docker/build-dockers.sh8
-rwxr-xr-xconductor/docker/push-dockers.sh43
-rwxr-xr-xconductor/docker/run-dockers.sh7
-rwxr-xr-xconductor/docker/stop-dockers.sh5
4 files changed, 0 insertions, 63 deletions
diff --git a/conductor/docker/build-dockers.sh b/conductor/docker/build-dockers.sh
deleted file mode 100755
index f62a6fd..0000000
--- a/conductor/docker/build-dockers.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-# TODO (IKRAM): need to test api only first to test the docker upload chain.
-# Will enable the others once api is tested
-docker build -t api api/
-docker build -t controller controller/
-docker build -t data data/
-docker build -t solver solver/
-docker build -t reservation reservation/
diff --git a/conductor/docker/push-dockers.sh b/conductor/docker/push-dockers.sh
deleted file mode 100755
index 59cb7d4..0000000
--- a/conductor/docker/push-dockers.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-BUILD_ARGS="--no-cache"
-ORG="onap"
-VERSION="1.1.0"
-PROJECT="optf"
-IMAGE="api"
-DOCKER_REPOSITORY="nexus3.onap.org:10003"
-IMAGE_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}"
-TIMESTAMP=$(date +"%Y%m%dT%H%M%S")
-
-if [ $HTTP_PROXY ]; then
-BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}"
-fi
-if [ $HTTPS_PROXY ]; then
- BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}"
-fi
-
-function tag {
- echo "Tagging !!!"
- docker tag api "nexus3.onap.org:10003/onap/optf/api"
- docker tag data "nexus3.onap.org:10003/onap/optf/data"
- docker tag controller "nexus3.onap.org:10003/onap/optf/controller"
- docker tag solver "nexus3.onap.org:10003/onap/optf/solver"
- docker tag reservation "nexus3.onap.org:10003/onap/optf/reservation"
-}
-
-
-function push_image {
- echo "Start push ${IMAGE_NAME}:latest"
-
- tag
- docker push "nexus3.onap.org:10003/onap/optf/api"
- docker push "nexus3.onap.org:10003/onap/optf/data"
- docker push "nexus3.onap.org:10003/onap/optf/controller"
- docker push "nexus3.onap.org:10003/onap/optf/solver"
- docker push "nexus3.onap.org:10003/onap/optf/reservation"
-
- #docker push ${IMAGE_NAME}:latest
- #push_image_tag ${IMAGE_NAME}:${VERSION}-SNAPSHOT-latest
- #push_image_tag ${IMAGE_NAME}:${VERSION}-STAGING-latest
- #push_image_tag ${IMAGE_NAME}:${VERSION}-STAGING-${TIMESTAMP}
- }
-push_image
diff --git a/conductor/docker/run-dockers.sh b/conductor/docker/run-dockers.sh
deleted file mode 100755
index f8ae249..0000000
--- a/conductor/docker/run-dockers.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-### example run - provide the conductor configuration file as input to the run script
-# ./run-dockers.sh <path-to>/conductor.conf
-docker run -v $1:/usr/local/bin/conductor.conf data &
-docker run -v $1:/usr/local/bin/conductor.conf controller &
-docker run -p "8091:8091" -v $1:/usr/local/bin/conductor.conf api &
-docker run -v $1:/usr/local/bin/conductor.conf solver &
-docker run -v $1:/usr/local/bin/conductor.conf reservation &
diff --git a/conductor/docker/stop-dockers.sh b/conductor/docker/stop-dockers.sh
deleted file mode 100755
index 72595e8..0000000
--- a/conductor/docker/stop-dockers.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-docker stop $(sudo docker ps -a -q --filter ancestor=api)
-docker stop $(sudo docker ps -a -q --filter ancestor=solver)
-docker stop $(sudo docker ps -a -q --filter ancestor=reservation)
-docker stop $(sudo docker ps -a -q --filter ancestor=data)
-docker stop $(sudo docker ps -a -q --filter ancestor=controller)