diff options
| author | Martin André <martin.andre@kvhasia.com> | 2015-04-15 17:24:04 +0900 |
|---|---|---|
| committer | Martin André <martin.andre@kvhasia.com> | 2015-04-16 14:56:48 +0900 |
| commit | 75a6c3bc9f9569b615b055597e9d73a9bccef287 (patch) | |
| tree | 3aba42c1259d0dc7dca1311a70cb7b1540cfe5f2 /tools/pull | |
| parent | b3bee1b927ee98d29cb03be8f383038753cc073f (diff) | |
| download | kolla-75a6c3bc9f9569b615b055597e9d73a9bccef287.tar.gz kolla-75a6c3bc9f9569b615b055597e9d73a9bccef287.zip | |
Introduce `tools/kolla` to interact with kolla
This is supposed to prevent proliferation of scripts in "tools"
directory and reduce code duplication.
This first patch replaces tools/{start,stop,pull,status} scripts and
more commands are to be added in the future.
Change-Id: I3d99cf5033be8631d8e6f32a4c34d3b5ffcae7e8
Diffstat (limited to 'tools/pull')
| -rwxr-xr-x | tools/pull | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/tools/pull b/tools/pull deleted file mode 100755 index a07e829ee..000000000 --- a/tools/pull +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/bash -# -# This script can be used to pull all of the docker images for the -# containers that compose Kolla. This is primarily used to update -# containers after a rebuild. Run with the option docker or compose -# to select the pull tool. - -if [[ $EUID -ne 0 ]]; then - echo "You must execute this script as root." 1>&2 - exit 1 -fi - -usage () { - cat <<EOF -Usage: $0 [mode] - -Options: - ---docker, -d - Pull with docker client ---compose, -c - Pull with docker-compose client -EOF -} - -case "$1" in - -(''|--help|-h) usage - exit 0 - ;; - -(--docker|-d) - shift - PULL_TOOL=docker - ;; - -(--compose|-c) - shift - PULL_TOOL=compose - ;; -esac - -# Move to top level directory -REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") -cd "$(dirname "$REAL_PATH")/.." - -if [[ "${PULL_TOOL}" == 'compose' ]]; then - - echo Pulling with docker-compose. - echo Pulling rabbitmq. - docker-compose -f ./compose/rabbitmq.yml pull - - echo Pulling mariadb. - docker-compose -f ./compose/mariadb.yml pull - - echo Pulling keystone. - docker-compose -f ./compose/keystone.yml pull - - echo Pulling glance. - docker-compose -f ./compose/glance-api-registry.yml pull - - echo Pulling nova controller. - docker-compose -f ./compose/nova-api-conductor-scheduler.yml pull - - echo Pulling nova compute with nova networking. - docker-compose -f ./compose/nova-compute-network.yml pull - - echo Pulling heat. - docker-compose -f ./compose/heat-api-engine.yml pull - - echo Pulling Horizon. - docker-compose -f ./compose/horizon.yml pull -fi - -if [[ "${PULL_TOOL}" == 'docker' ]]; then - echo Pulling mariadb. - docker pull kollaglue/centos-rdo-mariadb-data - docker pull kollaglue/centos-rdo-mariadb-app - - echo Pulling keystone. - docker pull kollaglue/centos-rdo-keystone - - echo Pulling glance. - docker pull kollaglue/centos-rdo-glance-api - docker pull kollaglue/centos-rdo-glance-registry - - echo Pulling nova controller. - docker pull kollaglue/centos-rdo-nova-conductor - docker pull kollaglue/centos-rdo-nova-api - docker pull kollaglue/centos-rdo-nova-scheduler - - echo Pulling nova compute with nova networking. - docker pull kollaglue/centos-rdo-nova-compute-data - docker pull kollaglue/centos-rdo-nova-libvirt - docker pull kollaglue/centos-rdo-nova-network - docker pull kollaglue/centos-rdo-nova-compute - - echo Pulling heat. - docker pull kollaglue/centos-rdo-heat-api - docker pull kollaglue/centos-rdo-heat-engine - - echo Pulling horizon. - docker pull kollaglue/centos-rdo-horizon -fi |
