fix(docker): add metadb postgres dependency to mc-infra-connector (fixes clean install Wave 1 failure) - #210
Merged
Merged
Conversation
… Wave 1 실패 수정) - mc-infra-connector가 mc-infra-connector-postgres(healthy)에 의존하도록 depends_on 추가 - .env.setup에 누락된 MC_INFRA_CONNECTOR_POSTGRES_HOST_PORT(6433) 추가
…ndency fix(docker): mc-infra-connector에 metadb postgres depends_on 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On a clean install,
installAll.shfails at Wave 1:Root cause
mc-infra-connector-postgres.mc-infra-connectorhas nodepends_onfor this container.installAll.shlist only entry-point services. They expect compose to start everything else through thedepends_onchain, so Wave 1 never starts the postgres container.mc-infra-connector-postgres:5432and exits with code 2 in a restart loop.mc-infra-managerthen becomes unhealthy while waiting on/spider/readyz, and Wave 1 fails.A related gap:
MC_INFRA_CONNECTOR_POSTGRES_HOST_PORTwas missing from.env.setup. The port mapping resolved to:5432, so postgres was published on a random host port.Changes
conf/docker/docker-compose.yaml: adddepends_on: mc-infra-connector-postgres (condition: service_healthy)tomc-infra-connector. The postgres service already has apg_isreadyhealthcheck.conf/docker/.env.setup: addMC_INFRA_CONNECTOR_POSTGRES_HOST_PORT=6433, next to the infra-manager postgres on 6432. For existing installs,sync_missing_env_varsininstallAll.shadds it to.envautomatically.docker-compose.mini.yamldoes not need this change. It still uses cb-spider 0.12.18 with a SQLite meta_db.