Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12241324
init-container
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
642 B
Referenced Files
None
Subscribers
None
init-container
View Options
#!/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
Details
Attached
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)
Attached To
Mode
rDCACHET Cachet Docker image
Attached
Detach File
Event Timeline
Log In to Comment