mirror of
https://github.com/bitnami/containers.git
synced 2026-03-04 06:47:25 +08:00
20 lines
414 B
Bash
Executable File
20 lines
414 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
function initialize {
|
|
# Package can be "installed" or "unpacked"
|
|
status=`nami inspect $1`
|
|
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
|
|
inputs=""
|
|
if [[ -f /$1-inputs.json ]]; then
|
|
inputs=--inputs-file=/$1-inputs.json
|
|
fi
|
|
nami initialize $1 $inputs
|
|
fi
|
|
}
|
|
|
|
for module in ruby; do
|
|
initialize $module
|
|
done
|
|
|
|
exec /entrypoint.sh "$@"
|