mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Also include the packeto-buildpacks/procfile buildpack to ensure the Procfile is interpolated for a process list.
30 lines
457 B
Bash
Executable File
30 lines
457 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
layers_dir=$1
|
|
|
|
echo "Building with buildpack 2"
|
|
bp_layer=$layers_dir/2
|
|
bp_env_dir=$bp_layer/env
|
|
mkdir -p $bp_env_dir
|
|
|
|
export TESTENV="$TESTENV:anotherenv"
|
|
|
|
echo "===> env start"
|
|
env
|
|
echo "===> env end"
|
|
|
|
echo "TESTENV_2" >$bp_env_dir/TESTENV
|
|
|
|
{
|
|
echo "[types]"
|
|
echo "launch = true"
|
|
echo "build = true"
|
|
echo "cache = true"
|
|
} >"${bp_layer}.toml"
|
|
|
|
cat >"$layers_dir/launch.toml" <<EOL
|
|
[[processes]]
|
|
type = "web"
|
|
command = "true"
|
|
EOL
|