Refactor file structure for better Docker organization

This commit is contained in:
netkas 2025-01-14 14:52:59 -05:00
parent 14ad8588b0
commit 1f673aab71
9 changed files with 32 additions and 8 deletions

22
docker/entrypoint.sh Normal file
View file

@ -0,0 +1,22 @@
#!/bin/bash
# Banner with cool ASCII art
echo "███████╗ ██████╗ ██████╗██╗ █████╗ ██╗ ██████╗ ██████╗ ██╗ ██╗"
echo "██╔════╝██╔═══██╗██╔════╝██║██╔══██╗██║ ██╔══██╗██╔═══██╗╚██╗██╔╝"
echo "███████╗██║ ██║██║ ██║███████║██║ ██████╔╝██║ ██║ ╚███╔╝ "
echo "╚════██║██║ ██║██║ ██║██╔══██║██║ ██╔══██╗██║ ██║ ██╔██╗ "
echo "███████║╚██████╔╝╚██████╗██║██║ ██║███████╗██████╔╝╚██████╔╝██╔╝ ██╗"
echo "╚══════╝ ╚═════╝ ╚═════╝╚═╝╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝"
# Check if the environment variable SB_MODE is set to "automated", if not exit.
if [ "$SB_MODE" != "automated" ]; then
echo "SB_MODE is not set to 'automated', exiting..."
exit 1
fi
# Initialize Socialbox
echo "Initializing Socialbox..."
/usr/bin/socialbox init --log-level=${LOG_LEVEL-INFO}
# Run supervisord, final command
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf