Fix observability job in pipeline

Co-authored-by: shadad <shadad@itba.edu.ar>
This commit is contained in:
bsquillari 2023-10-31 14:41:07 +00:00
parent 9277fab969
commit 9cee90e2c8
1 changed files with 14 additions and 7 deletions

View File

@ -44,13 +44,6 @@ preparation:
- echo "KIBANA_PROD_IMAGE_NAME=${IMAGE_BASE}/kibana:prod-${BUILD_ID}" >> context.env
- echo "LOGSTASH_PROD_IMAGE_NAME=${IMAGE_BASE}/logstash:prod-${BUILD_ID}" >> context.env
- echo "ELK_SETUP_PROD_IMAGE_NAME=${IMAGE_BASE}/elk-setup:prod-${BUILD_ID}" >> context.env
- echo "ELK_PROD_IMAGE_NAME=${IMAGE_BASE}/elasticsearch:prod-${BUILD_ID}" >> context.env
- echo "HEARTBEAT_PROD_IMAGE_NAME=${IMAGE_BASE}/heartbeat:prod-${BUILD_ID}" >> context.env
- echo "CURATOR_PROD_IMAGE_NAME=${IMAGE_BASE}/curator:prod-${BUILD_ID}" >> context.env
- echo "KIBANA_PROD_IMAGE_NAME=${IMAGE_BASE}/kibana:prod-${BUILD_ID}" >> context.env
- echo "LOGSTASH_PROD_IMAGE_NAME=${IMAGE_BASE}/logstash:prod-${BUILD_ID}" >> context.env
- echo "DOCKER_HUB_SCREEN_CLIENT_IMAGE=$DOCKER_HUB_USER/screens-client:${BUILD_ID}" >> context.env
- echo "DOCKER_HUB_BROWSER_CLIENT_IMAGE=$DOCKER_HUB_USER/browser-client:${BUILD_ID}" >> context.env
- echo "DOCKER_HUB_GATEWAY_IMAGE=$DOCKER_HUB_USER/gateway:${BUILD_ID}" >> context.env
@ -198,6 +191,13 @@ build-and-run-elk:
- docker push ${CURATOR_PROD_IMAGE_NAME}
- docker push ${KIBANA_PROD_IMAGE_NAME}
- docker push ${LOGSTASH_PROD_IMAGE_NAME}
- export ELASTICSEARCH_IMAGE=${ELK_PROD_IMAGE_NAME}
- export ELK_SETUP_IMAGE=${ELK_PROD_IMAGE_NAME}
- export LOGSTASH_IMAGE=${LOGSTASH_PROD_IMAGE_NAME}
- export KIBANA_IMAGE=${KIBANA_PROD_IMAGE_NAME}
- export CURATOR_IMAGE=${CURATOR_PROD_IMAGE_NAME}
- export HEARTBEAT_IMAGE=${HEARTBEAT_PROD_IMAGE_NAME}
- docker compose -f observability/docker-compose.yml --env-file $ENV_DEV_FILE --profile setup up -d
- docker compose -f observability/docker-compose.yml -f observability/elk/extensions/curator/curator-compose.yml -f observability/elk/extensions/heartbeat/heartbeat-compose.yml --env-file $ENV_DEV_FILE up -d
@ -452,6 +452,13 @@ deploy-prod:
- docker login -u $DOCKER_HUB_USER --password $DOCKER_HUB_PASS
- export ELASTICSEARCH_IMAGE=$DOCKER_HUB_ELK_IMAGE_NAME
- export ELK_SETUP_IMAGE=$DOCKER_HUB_ELK_SETUP_IMAGE_NAME
- export LOGSTASH_IMAGE=$DOCKER_HUB_LOGSTASH_IMAGE_NAME
- export KIBANA_IMAGE=$DOCKER_HUB_KIBANA_IMAGE_NAME
- export CURATOR_IMAGE=$DOCKER_HUB_CURATOR_IMAGE_NAME
- export HEARTBEAT_IMAGE=$DOCKER_HUB_HEARTBEAT_IMAGE_NAME
- docker compose -f observability/docker-compose.yml --env-file $ENV_DEV_FILE stop
- docker compose -f observability/docker-compose.yml -f observability/elk/extensions/curator/curator-compose.yml -f observability/elk/extensions/heartbeat/heartbeat-compose.yml --env-file $ENV_DEV_FILE down
- docker compose -f observability/docker-compose.yml --env-file $ENV_DEV_FILE rm -f