feat: add the ability to install arbitrary plugins on container start

This commit is contained in:
Jose Diaz-Gonzalez
2019-05-13 03:39:41 -04:00
parent 01f317bbf3
commit d7bb131b37

View File

@@ -6,7 +6,11 @@ exec 2>&1
echo "Running dokku-init"
cd /tmp || exit 1
dokku plugin:install
if [[ -f /mount/plugin-list ]]; then
while read line; do
dokku plugin:install "$(echo "$line" | awk '{print $2}')" "$(echo "$line" | cut -d':' -f1)"
done </mount/plugin-list
fi
if [[ -n "$DOKKU_HOSTNAME" ]]; then
echo "dokku dokku/vhost_enable boolean true" | debconf-set-selections