aboutsummaryrefslogtreecommitdiffstats
path: root/ci/make_repo.sh
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2015-09-12 11:28:51 +0800
committerbaigk <baiguoku@huawei.com>2015-09-12 11:28:51 +0800
commit9322711b6347bab9c2a7b47792373ddabae3a8a6 (patch)
treec62631ef1e08aa6195f4ab1f46fce0d53b1b6fbc /ci/make_repo.sh
parent6ec9d66787b01e710de5514f377830a94e32a4d2 (diff)
delete unused dir and config item
JIRA: COMPASS-45 Change-Id: Ica089d58ba339c2093ce2d47524ccf2e5e301cf4 Signed-off-by: baigk <baiguoku@huawei.com>
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
-