fix: support pack-based images that do not have a Procfile

If no Procfile is set, we'll leave the entrypoint alone, resulting in the default launcher for the web process (or whatever pack decided was default) executing.

Closes #5753
This commit is contained in:
Jose Diaz-Gonzalez
2023-03-20 02:58:36 -04:00
parent 756f8f26b8
commit 03da8462f7
2 changed files with 18 additions and 4 deletions

View File

@@ -75,6 +75,13 @@ teardown() {
assert_output_contains 'Installing requirements with pip'
}
@test "(builder-pack) git:from-image without a Procfile" {
run /bin/bash -c "dokku git:from-image $TEST_APP dokku/smoke-test-gradle-app:1"
echo "output: $output"
echo "status: $status"
assert_success
}
inject_requirements_txt() {
local APP="$1"
local APP_REPO_DIR="$2"