summaryrefslogtreecommitdiffstats
path: root/ci/make_repo.sh
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-09-12 08:15:08 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-12 08:15:08 +0000
commitc8bfaecc87a732f8b31fbb8629893d8df4af7468 (patch)
tree83eacc46a182f863602f742279963383f6604746 /ci/make_repo.sh
parent0e31ef15f4765216d7d7c2354c09576681cda7ff (diff)
parent9322711b6347bab9c2a7b47792373ddabae3a8a6 (diff)
Merge "delete unused dir and config item"
Diffstat (limited to 'ci/make_repo.sh')
-rwxr-xr-xci/make_repo.sh79
1 files changed, 0 insertions, 79 deletions
diff --git a/ci/make_repo.sh b/ci/make_repo.sh
deleted file mode 100755
index 0f922a18..00000000
--- a/ci/make_repo.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/bash
-set -ex
-
-WORK_PATH=$(cd "$(dirname "$0")"; pwd)
-REPO_PATH=${WORK_PATH}/repo
-UBUNTU_TAG="trusty"
-CENTOS_TAG="centos7"
-OPENSTACK_TAG="juno"
-DOCKER_TAG="${UBUNTU_TAG}/openstack-${OPENSTACK_TAG}"
-DOCKER_FILE=${WORK_PATH}/${UBUNTU_TAG}/${OPENSTACK_TAG}/Dockerfile
-DEPLOY_SCRIPT_PATH="$1"
-
-if [[ ! -d ${REPO_PATH} ]]; then
- mkdir -p ${REPO_PATH}
-fi
-
-set +e
-sudo docker info
-if [[ $? != 0 ]]; then
- wget -qO- https://get.docker.com/ | sh
-else
- echo "docker is already installed!"
-fi
-set -e
-
-if [[ -e ${WORK_PATH}/cp_repo.sh ]]; then
- rm -f ${WORK_PATH}/cp_repo.sh
-fi
-
-cat <<EOF >${WORK_PATH}/cp_repo.sh
-#!/bin/bash
-set -ex
-cp /*ppa.tar.gz /result
-EOF
-
-if [[ -e ${WORK_PATH}/install_packeages.sh ]]; then
- rm -f ${WORK_PATH}/install_packages.sh
-fi
-
-# generate ubuntu 14.04 ppa
-sudo apt-get install python-yaml -y
-sudo apt-get install python-cheetah -y
-
-python gen_ins_pkg_script.py ${DEPLOY_SCRIPT_PATH} Debian Debian_juno.tmpl
-
-sudo docker build -t ${DOCKER_TAG} -f ${DOCKER_FILE} .
-
-mkdir -p ${REPO_PATH}
-sudo docker run -t -v ${REPO_PATH}:/result ${DOCKER_TAG}
-
-IMAGE_ID=$(sudo docker images|grep ${DOCKER_TAG}|awk '{print $3}')
-sudo docker rmi -f ${IMAGE_ID}
-
-if [[ -e ${WORK_PATH}/install_packages.sh ]]; then
- rm -f ${WORK_PATH}/install_packages.sh
-fi
-
-# generate centos 7.1 ppa
-python gen_ins_pkg_script.py ${DEPLOY_SCRIPT_PATH} RedHat RedHat_juno.tmpl
-
-DOCKER_TAG="${CENTOS_TAG}/openstack-${OPENSTACK_TAG}"
-DOCKER_FILE=${WORK_PATH}/${CENTOS_TAG}/${OPENSTACK_TAG}/Dockerfile
-
-sudo docker build -t ${DOCKER_TAG} -f ${DOCKER_FILE} .
-
-mkdir -p ${REPO_PATH}
-sudo docker run -t -v ${REPO_PATH}:/result ${DOCKER_TAG}
-
-IMAGE_ID=$(sudo docker images|grep ${DOCKER_TAG}|awk '{print $3}')
-sudo docker rmi -f ${IMAGE_ID}
-
-if [[ -e ${WORK_PATH}/install_packages.sh ]]; then
- rm -f ${WORK_PATH}/install_packages.sh
-fi
-
-if [[ -e ${WORK_PATH}/cp_repo.sh ]]; then
- rm -f ${WORK_PATH}/cp_repo.sh
-fi
-