# Requirements: # # Builds Docker images locally: # git clone https://gitlab.com/psuapp/psu # cd psu/ # cp tests/dockerfiles/.env.local tests/dockerfiles/.env # source tests/dockerfiles/.env # docker build --no-cache -t ${PSU_IMAGE}:${PSU_TAG} -f Dockerfile . # docker build --no-cache -t ${PSU_IMAGE}:core-${PSU_TAG} -f Dockerfile.core . # docker build --no-cache -t ${PSU_IMAGE}:debian-${PSU_TAG} -f Dockerfile.debian . # docker build --no-cache -t ${PSU_IMAGE}:debian-core-${PSU_TAG} -f Dockerfile.debian-core . # # Build Docker images from https://gitlab.com/psuapp/hub locally: # cd .. # git clone https://gitlab.com/psuapp/hub # cd hub/ # source ../psu/tests/dockerfiles/.env # hub_pwd="$(pwd)" # cd "${hub_pwd}/php/8.0-fpm-alpine/" # docker build --no-cache -t $CI_REGISTRY/$CI_PROJECT_NAMESPACE/hub/php:8.0-fpm-alpine . # cd "${hub_pwd}/testing/psu/php-app/" # docker build --no-cache --build-arg CI_REGISTRY_IMAGE="$CI_REGISTRY/$CI_PROJECT_NAMESPACE/hub" -t $CI_REGISTRY/$CI_PROJECT_NAMESPACE/hub/testing/psu-php-app:latest . # cd "${hub_pwd}/testing/psu/apache2/" # docker build --no-cache -t $CI_REGISTRY/$CI_PROJECT_NAMESPACE/hub/testing/psu-apache2:latest . # cd "$hub_pwd" # cd ../psu # # Run tests locally: # bash scripts/test.sh #TRACE=true CI_REGISTRY=localhost.com CI_PROJECT_NAMESPACE=psuapp CI_REGISTRY_IMAGE=localhost.com/psupapp/psu CI_REGISTRY_USER=gitlab-ci-token CI_REGISTRY_PASSWORD=longalphanumericstring CI_COMMIT_SHA=cfbe17a43cecd1f737cba4584b161ea9676e8adf #DOCKER_REGISTRY_IMAGE=$DOCKER_REGISTRY/$CI_PROJECT_PATH PSU_IMAGE=localhost.com/psuapp/psu/builds PSU_TAG=cfbe17a43cecd1f737cba4584b161ea9676e8adf PSU_TAG_CORE=core-cfbe17a43cecd1f737cba4584b161ea9676e8adf PSU_PASSWORD=portainerAdminPassword TRAEFIK_VERSION="2.5" PORTAINER_IMAGE="portainer/portainer-ce" #PORTAINER_IMAGE="portainer/portainer" PORTAINER_VERSION=latest #PORTAINER_VERSION="2.6.3" #PORTAINER_VERSION="1.24.2" PORTAINER_COMMAND_OPTIONS="" #PORTAINER_COMMAND_OPTIONS=" --no-analytics" #PORTAINER_DEPLOY_EXTRA_ARGS="--debug --verbose" SWARM_NODE_NAME=localhost SWARM_NODE_IP=$(hostname -I | awk '{ print $1 }') # For macOS #SWARM_NODE_IP=$(ipconfig getifaddr en0)