Page MenuHomeDevCentral

init-container
No OneTemporary

init-container

#!/bin/sh
if [ -z "$APP_KEY" ]; then
echo "You must set APP_KEY environment variable when running this container."
echo
echo "This key would be dangerous to set automatically as you need it to stay"
echo "the same in production to avoid loss of encrypted and hashed data."
echo
echo "You can do so adding this argument to your container run command:"
echo "-e \"APP_KEY=$(php artisan key:generate --show)\""
exit 1
fi
if [ ! -f .initialized ]; then
# Container is initialized according the environment variables
# passed to the container to setup the application.
/usr/local/bin/setup-container
fi
/usr/local/sbin/runsvdir-init

File Metadata

Mime Type
text/x-shellscript
Expires
Sun, Oct 12, 05:01 (1 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3065034
Default Alt Text
init-container (642 B)

Event Timeline