From 24a95101aba95edef170e7f1c4a9444a48de61d5 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 6 Sep 2023 12:39:07 +0200 Subject: [PATCH] Update full_install to remove pull of docker images before deploying with helm Change-Id: If7081fdeea41795ac13bb80a72be0d7b82f55697 Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 40 ---------------------------------- 1 file changed, 40 deletions(-) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 2ec03339..4724a14e 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -215,45 +215,6 @@ function docker_login() { [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -function pull_docker_images() { - [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function - echo "Pulling docker images" - [ -n "${DOCKER_REGISTRY_URL}" ] && docker_login - - echo "Pulling non-OSM docker images" - sg docker -c "docker pull wurstmeister/zookeeper" || FATAL "cannot get zookeeper docker image" - sg docker -c "docker pull wurstmeister/kafka:${KAFKA_TAG}" || FATAL "cannot get kafka docker image" - sg docker -c "docker pull prom/prometheus:${PROMETHEUS_TAG}" || FATAL "cannot get prometheus docker image" - sg docker -c "docker pull google/cadvisor:${PROMETHEUS_CADVISOR_TAG}" || FATAL "cannot get prometheus cadvisor docker image" - sg docker -c "docker pull grafana/grafana:${GRAFANA_TAG}" || FATAL "cannot get grafana docker image" - sg docker -c "docker pull kiwigrid/k8s-sidecar:${KIWIGRID_K8S_SIDECAR_TAG}" || FATAL "cannot get kiwigrid k8s-sidecar docker image" - sg docker -c "docker pull mariadb:${KEYSTONEDB_TAG}" || FATAL "cannot get keystone-db docker image" - sg docker -c "docker pull mysql:5" || FATAL "cannot get mysql docker image" - - list_of_modules="MON NBI KEYSTONE RO LCM NG-UI osmclient prometheus" - if [ -n "$INSTALL_NGSA" ]; then - list_of_modules="${list_of_modules} Airflow Webhook" - else - list_of_modules="${list_of_modules} POL" - fi - if [ -n "$INSTALL_PLA" ]; then - list_of_modules="${list_of_modules} PLA" - fi - echo "Pulling OSM docker images for the following modules: ${list_of_modules}" - for module in ${list_of_modules}; do - module_lower=${module,,} - module_tag="${OSM_DOCKER_TAG}" - if [ -n "${MODULE_DOCKER_TAG}" ] && echo $TO_REBUILD | grep -q $module ; then - module_tag="${MODULE_DOCKER_TAG}" - fi - echo "Pulling ${DOCKER_REGISTRY_URL}${DOCKER_USER}/${module_lower}:${module_tag} docker image" - sg docker -c "docker pull ${DOCKER_REGISTRY_URL}${DOCKER_USER}/${module_lower}:${module_tag}" || FATAL "cannot pull $module docker image" - done - - echo "Finished pulling docker images" - [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function -} - function generate_docker_images() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function echo "Generating docker images" @@ -538,7 +499,6 @@ function install_osm() { track juju juju_ok # Deploy OSM services - [ -z "$DOCKER_NOBUILD" ] && pull_docker_images [ -z "$DOCKER_NOBUILD" ] && [ -z "$PULL_IMAGES" ] && generate_docker_images track docker_images docker_images_ok -- 2.17.1