diff options
-rwxr-xr-x | build/creating_data/create_nginx_image/01create-image.sh | 6 | ||||
-rw-r--r-- | build/data_lists/onap_3.0.1-git_repos.list | 6 | ||||
-rwxr-xr-x | build/download_offline_data_by_lists.sh | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/build/creating_data/create_nginx_image/01create-image.sh b/build/creating_data/create_nginx_image/01create-image.sh index 86d96cf2..aa62e40a 100755 --- a/build/creating_data/create_nginx_image/01create-image.sh +++ b/build/creating_data/create_nginx_image/01create-image.sh @@ -18,7 +18,13 @@ # # COPYRIGHT NOTICE ENDS HERE +IMG_DIR="${1}" + +if [[ ! -e $IMG_DIR ]]; then + mkdir -p "${IMG_DIR}" +fi script_dir="$(dirname ${BASH_SOURCE[0]})" cd "$script_dir" docker build -t own_nginx . +docker -l error save -o "$IMG_DIR/own_nginx_latest.tar" "own_nginx:latest" diff --git a/build/data_lists/onap_3.0.1-git_repos.list b/build/data_lists/onap_3.0.1-git_repos.list index 5f602daa..73523dd2 100644 --- a/build/data_lists/onap_3.0.1-git_repos.list +++ b/build/data_lists/onap_3.0.1-git_repos.list @@ -1,9 +1,9 @@ #repo branch gerrit.onap.org/r/aaf/authz.git 3.0.1-ONAP -gerrit.onap.org/r/demo.git 3.0.1-ONAP +gerrit.onap.org/r/demo.git casablanca gerrit.onap.org/r/dmaap/messagerouter/messageservice.git 3.0.1-ONAP -gerrit.onap.org/r/so/docker-config.git 3.0.1-ONAP +gerrit.onap.org/r/so/docker-config.git casablanca github.com/rancher/community-catalog.git git.rancher.io/rancher-catalog.git gerrit.onap.org/r/testsuite/properties.git 3.0.1-ONAP -gerrit.onap.org/r/portal.git 3.0.1-ONAP +gerrit.onap.org/r/portal.git casablanca diff --git a/build/download_offline_data_by_lists.sh b/build/download_offline_data_by_lists.sh index 741c2046..8f671844 100755 --- a/build/download_offline_data_by_lists.sh +++ b/build/download_offline_data_by_lists.sh @@ -59,14 +59,12 @@ echo "[Step $((CURR++))/$TOTAL Download docker images for infra-server]" $CTOOLS/download-docker-images.sh "${LISTS_DIR}/infra_docker_images.list" echo "[Step $((CURR++))/$TOTAL Build own nginx image]" -$CTOOLS/create_nginx_image/01create-image.sh +$CTOOLS/create_nginx_image/01create-image.sh "${DATA_DIR}/offline_data/docker_images_infra" echo "[Step $((CURR++))/$TOTAL Save docker images from docker cache to tarfiles]" $CTOOLS/save-docker-images.sh "${LISTS_DIR}/${TAG}-docker_images.list" "${DATA_DIR}/offline_data/docker_images_for_nexus" echo "[Step $((CURR++))/$TOTAL Prepare infra related images to infra folder]" -mkdir -p "${DATA_DIR}/offline_data/docker_images_infra" -mv "${DATA_DIR}/offline_data/docker_images_for_nexus/own_nginx_latest.tar" "${DATA_DIR}/offline_data/docker_images_infra" $CTOOLS/save-docker-images.sh "${LISTS_DIR}/infra_docker_images.list" "${DATA_DIR}/offline_data/docker_images_infra" echo "[Step $((CURR++))/$TOTAL Download git repos]" |