Skip to content

Commit

Permalink
[project-base] added messenger configuration to deployed application …
Browse files Browse the repository at this point in the history
…(#2904)
  • Loading branch information
grossmannmartin authored Oct 30, 2023
1 parent f3f0ac5 commit 1757fae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"scheb/2fa-qr-code": "^5.7",
"sensio/framework-extra-bundle": "^5.2",
"sentry/sentry-symfony": "^4.2.8",
"shopsys/deployment": "~1.0.2",
"shopsys/deployment": "~1.1.0",
"shopsys/form-types-bundle": "14.0.x-dev",
"shopsys/framework": "14.0.x-dev",
"shopsys/frontend-api": "14.0.x-dev",
Expand Down
12 changes: 12 additions & 0 deletions app/deploy/deploy-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function deploy() {
["ELASTIC_SEARCH_INDEX_PREFIX"]=${PROJECT_NAME}
["REDIS_PREFIX"]=${PROJECT_NAME}
["MAILER_DSN"]=${MAILER_DSN}
["MESSENGER_TRANSPORT_DSN"]=${MESSENGER_TRANSPORT_DSN}

["GOPAY_IS_PRODUCTION_MODE"]=${GOPAY_IS_PRODUCTION_MODE}
["GOPAY_EN_GOID"]=${GOPAY_EN_GOID}
Expand Down Expand Up @@ -95,10 +96,14 @@ function deploy() {
BASE_PATH
CI_ENVIRONMENT_SLUG
SENTRY_DSN
RABBITMQ_DEFAULT_USER
RABBITMQ_DEFAULT_PASS
RABBITMQ_IP_WHITELIST
)

source "${DEPLOY_TARGET_PATH}/functions.sh"
source "${DEPLOY_TARGET_PATH}/parts/domains.sh"
source "${DEPLOY_TARGET_PATH}/parts/domain-rabbitmq-management.sh"
source "${BASE_PATH}/deploy/parts/whitelist-ip.sh"
source "${DEPLOY_TARGET_PATH}/parts/environment-variables.sh"
source "${DEPLOY_TARGET_PATH}/parts/kubernetes-variables.sh"
Expand All @@ -108,8 +113,15 @@ function deploy() {
}

function merge() {
# Specify consumers configuration with the default configuration in the format:
# <consumer-name>:<transport-names-separated-by-space>:<number-of-consumers>
DEFAULT_CONSUMERS=(
"example:example_transport:1"
)

source "${BASE_PATH}/vendor/shopsys/deployment/deploy/functions.sh"
merge_configuration
create_consumer_manifests $DEFAULT_CONSUMERS
}

case "$1" in
Expand Down

0 comments on commit 1757fae

Please sign in to comment.