feat: add a Railpack builder to Dokku

Closes #7615
This commit is contained in:
Jose Diaz-Gonzalez
2025-09-08 04:28:05 -04:00
parent 837c3db042
commit cba345025c
28 changed files with 682 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $TRACE ]] && set -x
main() {
declare desc="re-runs railpack commands as sudo"
local RAILPACK_BIN=""
if [[ -x "/usr/bin/railpack" ]]; then
RAILPACK_BIN="/usr/bin/railpack"
fi
if [[ -z "$RAILPACK_BIN" ]]; then
echo "! No railpack binary found" 1>&2
exit 1
fi
sudo -E "$RAILPACK_BIN" "$@"
}
main "$@"