tests: add test to prove Dokku respects the Procfile when deploying from an image
Any subsequent ps:rebuild should always respect the image for fetching files. This test proves this works. Closes #7375
This commit is contained in:
@@ -22,7 +22,6 @@ trigger-git-git-from-image() {
|
||||
rsync -a "$BUILD_DIR/" "$TMP_WORK_DIR"
|
||||
fi
|
||||
|
||||
dokku_log_verbose "Setting Dockerfile"
|
||||
touch "$TMP_WORK_DIR/Dockerfile"
|
||||
echo "FROM $DOCKER_IMAGE" >>"$TMP_WORK_DIR/Dockerfile"
|
||||
echo "LABEL com.dokku.docker-image-labeler/alternate-tags=[\\\"$DOCKER_IMAGE\\\"]" >>"$TMP_WORK_DIR/Dockerfile"
|
||||
|
||||
@@ -90,7 +90,7 @@ trigger-scheduler-docker-local-scheduler-deploy() {
|
||||
trap '' INT HUP
|
||||
sleep "$DOKKU_WAIT_TO_RETIRE"
|
||||
for oldid in $oldids; do
|
||||
if ! docker container inspect "$oldid" &>/dev/null; then
|
||||
if ! "$DOCKER_BIN" container inspect "$oldid" &>/dev/null; then
|
||||
continue
|
||||
fi
|
||||
# Disable the container restart policy
|
||||
|
||||
Reference in New Issue
Block a user