diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml index 7583e6063f4cc093bd259f1f08a28cb9bc0f1ac4..62a8c127a1126a30fc7b2fe8ddc1b5bcf5782f42 100644 --- a/.docker/docker-compose.yml +++ b/.docker/docker-compose.yml @@ -89,7 +89,7 @@ services: - --mysqld.address=data-db:3306 - --config.my-cnf=/.my.cnf volumes: - - ./dbrepo-data-db/metrics.cnf:/.my.cnf + - ./config/metrics.cnf:/.my.cnf healthcheck: test: -h <<: *healthcheck-params diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2fa34f5eac19a330e253277fe5a6d46ca1167de..6752baff09fc9609e898f7ff5dbd5ce6abf39cc8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ variables: CHART_VERSION: "1.9.0" SUPPORTED_VERSIONS: "1.8.0, 1.8.1, 1.8.2, 1.9.0" SUPPORTED_ARCH: "linux/amd64" - MAINTAINED_SERVICES: "analyse-service, auth-service-init, dashboard-service, dashboard-service-init, data-service, metadata-service, search-db, search-service, search-service-init, storage-service-init, ui" + MAINTAINED_SERVICES: "analyse-service, auth-service-init, dashboard-service, dashboard-service-init, data-service, metadata-service, search-service, search-service-init, storage-service-init, ui" CACHE_FALLBACK_KEY: "${CI_DEFAULT_BRANCH}" # This will supress any download for dependencies and plugins or upload messages which would clutter the console log. # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. diff --git a/.gitlab/check-supported-images.sh b/.gitlab/check-supported-images.sh index 2f1f804e5dd5edc0d0b252ed6d1ecfed33863e69..4c00c7d40bcd134716a0964747708304b2042e13 100755 --- a/.gitlab/check-supported-images.sh +++ b/.gitlab/check-supported-images.sh @@ -1,13 +1,13 @@ #!/bin/bash echo "Starting registry check ..." -if [ -z $SUPPORTED_VERSIONS ]; then +if [[ -z $SUPPORTED_VERSIONS ]]; then echo "[ERROR] Missing environment variable SUPPORTED_VERSIONS" > /dev/stderr exit 1 -elif [ -z $MAINTAINED_SERVICES ]; then +elif [[ -z $MAINTAINED_SERVICES ]]; then echo "[ERROR] Missing environment variable MAINTAINED_SERVICES" > /dev/stderr exit 1 -elif [ -z $CI_REGISTRY2_URL ]; then +elif [[ -z $CI_REGISTRY2_URL ]]; then echo "[ERROR] Missing environment variable CI_REGISTRY2_URL" > /dev/stderr exit 1 fi diff --git a/docker-compose.yml b/docker-compose.yml index 524fba056261754b3c7af651c7e85c687e178088..33ef52a7b016601865a50f517a72267ce49033d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -365,8 +365,8 @@ services: build: context: ./dbrepo-ui args: - APP_VERSION: ${APP_VERSION:-latest} - COMMIT: ${CI_COMMIT_SHA:-} + APP_VERSION: ${CI_COMMIT_TAG:-latest} + COMMIT: ${CI_COMMIT_SHORT_SHA:-} network: host environment: NUXT_PUBLIC_API_CLIENT: "${BASE_URL:-http://localhost}" diff --git a/install.sh b/install.sh index 555723506cd0b06efa6ceffbe85277b3ff8673c3..ea273c5f332d061649ca92750c3b44585ea042d5 100644 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ # preset VERSION="1.9.0" MIN_CPU=8 -MIN_RAM=20 +MIN_RAM=10 SKIP_CHECKS=${SKIP_CHECKS:-0} DOWNLOAD_ONLY=${DOWNLOAD_ONLY:-0} @@ -34,7 +34,7 @@ if [[ $SKIP_CHECKS -eq 0 ]] && [[ $DOWNLOAD_ONLY -ne 1 ]]; then if [[ $RAM -lt $MIN_RAM ]]; then echo "You do not have enough RAM free resources:" echo "" - echo " - we found ${RAM}GB RAM (free) instead of necessary ${RAM}GB" + echo " - we found ${RAM}GB RAM (free) instead of necessary ${MIN_RAM}GB" echo " - if you believe this is a mistake, skip startup checks with the SKIP_CHECKS=1 flag" exit 4 else diff --git a/make/dev.mk b/make/dev.mk index d70c3b2ac4591bb7c660b0ed3fb0c7fd1dab4453..ac5e0e400135d49f30c3ebdb06d8eb07f9363928 100644 --- a/make/dev.mk +++ b/make/dev.mk @@ -19,6 +19,7 @@ package-config: ## Package the config files cp ./dbrepo-data-db/1_grant-user.sql ./.docker/config cp ./dbrepo-metadata-db/1_setup-schema.sql ./.docker/config cp ./dbrepo-metadata-db/2_setup-data.sql ./.docker/config + cp ./dbrepo-metadata-db/metrics.cnf ./.docker/config cp ./dbrepo-broker-service/rabbitmq.conf ./.docker/config cp ./dbrepo-broker-service/enabled_plugins ./.docker/config cp ./dbrepo-broker-service/definitions.json ./.docker/config @@ -30,7 +31,7 @@ package-config: ## Package the config files cp ./dbrepo-dashboard-ui/ldap.toml ./.docker/config/ldap.toml cp ./dbrepo-metric-db/prometheus.yml ./.docker/config cp ./dbrepo-storage-service/s3_config.json ./.docker/config - cp ./dbrepo-auth-service/listeners/target/create-event-listener.jar ./.docker/config + cp ./dbrepo-auth-service/listeners/create-event-listener.jar ./.docker/config cd ./.docker && tar czf ./dist.tar.gz ./docker-compose.yml ./.env ./config .PHONY: install-staging