Loading helm/scripts/install_capif.sh +2 −0 Viewed Changes for helm/scripts/install_capif.sh: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -123,6 +123,8 @@ helm $KUBECONFIG upgrade --install -n $CAPIF_NAMESPACE $CAPIF_NAME_VERSION_CHART --set mock-server.ingress.hosts[0].paths[0].path="/" \ --set mock-server.ingress.hosts[0].paths[0].pathType="Prefix" \ --set mock-server.env.logLevel="DEBUG" \ --set mock-server.service.port=$MOCK_SERVER_PORT \ --set mock-server.livenessProbe.tcpSocket.port=$MOCK_SERVER_PORT \ --set mongo-register.persistence.storageClass=$CAPIF_STORAGE_CLASS \ --set mongo-register.persistence.storage=$CAPIF_MONGO_REGISTER_STORAGE_SIZE \ --set mongo-register.extraFlags[0]="--repair" \ Loading helm/scripts/variables.sh +2 −0 Viewed Changes for helm/scripts/variables.sh: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -94,6 +94,8 @@ export PROMETHEUS_URL="http://$MONITORING_SERVICE_NAME-prometheus.$MONITORING_NA export VAULT_INTERNAL_HOSTNAME="$VAULT_SERVICE_NAME.$VAULT_NAMESPACE.svc.cluster.local" export VAULT_PORT="8200" export VAULT_ACCESS_TOKEN="dev-only-token" ## Only for testing purpouses, configuration of mock-server port export MOCK_SERVER_PORT="9100" ######### POST PROCESSING VARIABLES SET ######## ### To deploy in other environment we need to setup urls according to it and also using specific kubeconfig: Loading tools/base_images_scripts/common.sh 0 → 100755 +6 −0 Viewed Changes for tools/base_images_scripts/common.sh: 6 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash # Directories variables setup (no modification needed) export IMAGE_SCRIPTS_DIR=$(dirname "$(readlink -f "$0")") export TOOLS_DIR=$(dirname "$IMAGE_SCRIPTS_DIR") export CAPIF_BASE_DIR=$(dirname "$TOOLS_DIR") No newline at end of file tools/base_images_scripts/create_and_push_robot_image.sh 0 → 100755 +23 −0 Viewed Changes for tools/base_images_scripts/create_and_push_robot_image.sh: 23 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash source $(dirname "$(readlink -f "$0")")/common.sh DOCKER_ROBOT_IMAGE=labs.etsi.org:5050/ocf/capif/robot-tests-image DOCKER_ROBOT_IMAGE_VERSION=1.0 TEST_FOLDER=$CAPIF_BASE_DIR/tests RESULT_FOLDER=$CAPIF_BASE_DIR/results ROBOT_DOCKER_FILE_FOLDER=$TOOLS_DIR/robot cd $ROBOT_DOCKER_FILE_FOLDER docker login labs.etsi.org:5050 docker build --no-cache --platform linux/amd64 -t ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-amd64 . docker push ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-amd64 docker build --no-cache --platform linux/arm64 -t ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-arm64 . docker push ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-arm64 docker manifest create ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION} \ --amend ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-amd64 \ --amend ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-arm64 docker manifest push ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION} tools/base_images_scripts/push_base_images_ocf.sh 0 → 100755 +32 −0 Viewed Changes for tools/base_images_scripts/push_base_images_ocf.sh: 32 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash source $(dirname "$(readlink -f "$0")")/common.sh PLATFORMS=("linux/arm64" "linux/amd64") BASIC_IMAGES=("python:3-slim-bullseye" "nginx:1.27.1" "vault:1.13.2" "ubuntu:20.04") docker login labs.etsi.org:5050 for basic_image in "${BASIC_IMAGES[@]}"; do echo "$basic_image processing" MANIFEST_AMEND="" for platform in "${PLATFORMS[@]}";do docker pull $basic_image --platform $platform echo "$basic_image pulled for platform $platform" tag=$(echo $platform | awk -F'/' '{print $NF}') docker tag $basic_image labs.etsi.org:5050/ocf/capif/$basic_image-$tag echo "labs.etsi.org:5050/ocf/capif/$basic_image-$tag tagged" docker push labs.etsi.org:5050/ocf/capif/$basic_image-$tag echo "labs.etsi.org:5050/ocf/capif/$basic_image-$tag pushed" MANIFEST_AMEND="$MANIFEST_AMEND --amend labs.etsi.org:5050/ocf/capif/$basic_image-$tag" done docker manifest create labs.etsi.org:5050/ocf/capif/$basic_image $MANIFEST_AMEND echo "labs.etsi.org:5050/ocf/capif/$basic_image Manifest created with amend $MANIFEST_AMEND" docker manifest push labs.etsi.org:5050/ocf/capif/$basic_image echo "labs.etsi.org:5050/ocf/capif/$basic_image Manifest pushed" done Loading
helm/scripts/install_capif.sh +2 −0 Viewed Changes for helm/scripts/install_capif.sh: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -123,6 +123,8 @@ helm $KUBECONFIG upgrade --install -n $CAPIF_NAMESPACE $CAPIF_NAME_VERSION_CHART --set mock-server.ingress.hosts[0].paths[0].path="/" \ --set mock-server.ingress.hosts[0].paths[0].pathType="Prefix" \ --set mock-server.env.logLevel="DEBUG" \ --set mock-server.service.port=$MOCK_SERVER_PORT \ --set mock-server.livenessProbe.tcpSocket.port=$MOCK_SERVER_PORT \ --set mongo-register.persistence.storageClass=$CAPIF_STORAGE_CLASS \ --set mongo-register.persistence.storage=$CAPIF_MONGO_REGISTER_STORAGE_SIZE \ --set mongo-register.extraFlags[0]="--repair" \ Loading
helm/scripts/variables.sh +2 −0 Viewed Changes for helm/scripts/variables.sh: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -94,6 +94,8 @@ export PROMETHEUS_URL="http://$MONITORING_SERVICE_NAME-prometheus.$MONITORING_NA export VAULT_INTERNAL_HOSTNAME="$VAULT_SERVICE_NAME.$VAULT_NAMESPACE.svc.cluster.local" export VAULT_PORT="8200" export VAULT_ACCESS_TOKEN="dev-only-token" ## Only for testing purpouses, configuration of mock-server port export MOCK_SERVER_PORT="9100" ######### POST PROCESSING VARIABLES SET ######## ### To deploy in other environment we need to setup urls according to it and also using specific kubeconfig: Loading
tools/base_images_scripts/common.sh 0 → 100755 +6 −0 Viewed Changes for tools/base_images_scripts/common.sh: 6 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash # Directories variables setup (no modification needed) export IMAGE_SCRIPTS_DIR=$(dirname "$(readlink -f "$0")") export TOOLS_DIR=$(dirname "$IMAGE_SCRIPTS_DIR") export CAPIF_BASE_DIR=$(dirname "$TOOLS_DIR") No newline at end of file
tools/base_images_scripts/create_and_push_robot_image.sh 0 → 100755 +23 −0 Viewed Changes for tools/base_images_scripts/create_and_push_robot_image.sh: 23 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash source $(dirname "$(readlink -f "$0")")/common.sh DOCKER_ROBOT_IMAGE=labs.etsi.org:5050/ocf/capif/robot-tests-image DOCKER_ROBOT_IMAGE_VERSION=1.0 TEST_FOLDER=$CAPIF_BASE_DIR/tests RESULT_FOLDER=$CAPIF_BASE_DIR/results ROBOT_DOCKER_FILE_FOLDER=$TOOLS_DIR/robot cd $ROBOT_DOCKER_FILE_FOLDER docker login labs.etsi.org:5050 docker build --no-cache --platform linux/amd64 -t ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-amd64 . docker push ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-amd64 docker build --no-cache --platform linux/arm64 -t ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-arm64 . docker push ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-arm64 docker manifest create ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION} \ --amend ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-amd64 \ --amend ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}-arm64 docker manifest push ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}
tools/base_images_scripts/push_base_images_ocf.sh 0 → 100755 +32 −0 Viewed Changes for tools/base_images_scripts/push_base_images_ocf.sh: 32 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash source $(dirname "$(readlink -f "$0")")/common.sh PLATFORMS=("linux/arm64" "linux/amd64") BASIC_IMAGES=("python:3-slim-bullseye" "nginx:1.27.1" "vault:1.13.2" "ubuntu:20.04") docker login labs.etsi.org:5050 for basic_image in "${BASIC_IMAGES[@]}"; do echo "$basic_image processing" MANIFEST_AMEND="" for platform in "${PLATFORMS[@]}";do docker pull $basic_image --platform $platform echo "$basic_image pulled for platform $platform" tag=$(echo $platform | awk -F'/' '{print $NF}') docker tag $basic_image labs.etsi.org:5050/ocf/capif/$basic_image-$tag echo "labs.etsi.org:5050/ocf/capif/$basic_image-$tag tagged" docker push labs.etsi.org:5050/ocf/capif/$basic_image-$tag echo "labs.etsi.org:5050/ocf/capif/$basic_image-$tag pushed" MANIFEST_AMEND="$MANIFEST_AMEND --amend labs.etsi.org:5050/ocf/capif/$basic_image-$tag" done docker manifest create labs.etsi.org:5050/ocf/capif/$basic_image $MANIFEST_AMEND echo "labs.etsi.org:5050/ocf/capif/$basic_image Manifest created with amend $MANIFEST_AMEND" docker manifest push labs.etsi.org:5050/ocf/capif/$basic_image echo "labs.etsi.org:5050/ocf/capif/$basic_image Manifest pushed" done