From f4ce5961fa7902031f50b717c1cda8784a1f0e5d Mon Sep 17 00:00:00 2001 From: hu xinhui Date: Tue, 24 Jul 2018 12:59:31 +0800 Subject: change harbor offline tar to artifacts.opnfv.org Change-Id: I17e2a5f4c83ccabc4eb15cd3ee8c6fddc599c87f Signenoff-by: hu xinhui Signed-off-by: hu xinhui --- deploy/compass_vm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deploy') diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh index 2f909b60..f7bc378e 100755 --- a/deploy/compass_vm.sh +++ b/deploy/compass_vm.sh @@ -190,11 +190,12 @@ function launch_harbor() { local harbor_cfg=$harbor_install_dir/harbor/harbor.cfg local harbor_docker_compose=$harbor_install_dir/harbor/docker-compose.yml + local harbor_tar=$harbor_install_dir/compass_dists/harbor-offline-installer-v$HABOR_VERSION.tgz rm -f $WORK_DIR/cache/harbor-offline-installer-v$HABOR_VERSION.tgz - curl --connect-timeout 10 -o $WORK_DIR/cache/harbor-offline-installer-v$HABOR_VERSION.tgz $HABOR_DOWNLOAD_URL + curl --connect-timeout 10 -o $WORK_DIR/cache/harbor-offline-installer-v$HABOR_VERSION.tgz file://$harbor_tar tar -zxf $WORK_DIR/cache/harbor-offline-installer-v$HABOR_VERSION.tgz -C $harbor_install_dir - sed "s/^hostname = .*/hostname = $INSTALL_IP/g" -i $harbor_cfg + sed "s/^hostname = .*/hostname = $INSTALL_IP:8080/g" -i $harbor_cfg sed "s/80:80/8080:80/g" -i $harbor_docker_compose sed "s/443:443/8443:443/g" -i $harbor_docker_compose cd $harbor_install_dir/harbor/ -- cgit 1.2.3-korg