Skip to content

Commit 41e3c5a

Browse files
committed
fix polaris one-shot startup with compose wait
1 parent 139cd2c commit 41e3c5a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docker/thirdparties/run-thirdparties-docker.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,11 @@ start_polaris() {
16531653
register_stack_metadata "polaris" "${POLARIS_DIR}/docker-compose.yaml" ""
16541654
compose_cmd "${POLARIS_DIR}/docker-compose.yaml" "" down --remove-orphans
16551655
if [[ "${STOP}" -ne 1 ]]; then
1656-
compose_cmd "${POLARIS_DIR}/docker-compose.yaml" "" up -d --wait --remove-orphans
1656+
# polaris-init is a one-shot service. Keep it out of `up --wait`,
1657+
# otherwise Compose reports the successfully exited container as a
1658+
# failed stack startup.
1659+
compose_cmd "${POLARIS_DIR}/docker-compose.yaml" "" up -d --wait --remove-orphans polaris
1660+
compose_cmd "${POLARIS_DIR}/docker-compose.yaml" "" run --rm --no-deps polaris-init
16571661
fi
16581662
}
16591663

0 commit comments

Comments
 (0)