Skip to content
Snippets Groups Projects
Commit e74cc418 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Improved Gitlab healtchecks integration to the app container performing setup.

parent 1383ed4b
No related branches found
No related tags found
1 merge request!38.haf_app_pattern_tests_template allows to perform HAF-APP setup performed by dedicated application container
Pipeline #84740 passed
......@@ -91,6 +91,19 @@ include:
# intentionally use setup way chosed in haf_api_node compose scripts
POSTGRES_URL: "postgresql://haf_admin@haf-instance/haf_block_log"
command: ["install_app"]
entrypoint:
- '/bin/bash'
- '-c'
- |
set -xeuo pipefail
echo "Attempting to perform application setup..."
# pass control to the default image entrypoint
"./docker_entrypoint.sh" "$@"
echo "Application setup completed, starting to listed app port to satisfy Gitlab health checker..."
# Once setup completed, just listen on container/app port to satisfy GitlabCI HealthChecker
nc -v -l -p $(echo "${HAF_APP_PORT}")
# arg $0 should be explicitly passed when using 'bash -c' entrypoints
- '/bin/bash'
- name: ${HAF_APP_IMAGE}
alias: app
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment