Files
phpmyadmin-docker-lightweight/docker/etc/docker-entrypoint.sh
T
2022-12-04 20:39:04 +01:00

30 lines
952 B
Bash
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
#String Colors
NC='\033[0;m' # Default Color
GRN='\033[32;1m'
RED='\033[31;1m'
BLK='\033[30;1m'
# Set the number of cpu cores
export NUM_CPUS=`nproc`
# Run custom script before the main docker process gets started
for f in /docker-entrypoint.init.d/*; do
case "$f" in
*.sh) # this should match the set of files we check for below
echo "⚙ Executing entrypoint.init file: ${f}"
. $f
break
;;
esac
done
printf "\n${GRN}--->${NC} 🚀️ Welcome to ${GRN}beeyev phpMyAdmin lightweight${NC} container..."
printf "\n${GRN}--->${NC} Docker image build date: ${GRN}${BUILD_DATE}${NC}, fingerprint: ${GRN}${BUILD_FINGERPRINT}${NC}"
printf "\n${GRN}--->${NC} Subscribe to project updates: ${GRN}https://github.com/beeyev/phpmyadmin-docker-lightweight${NC}\n\n"
caddy start --adapter caddyfile --config /etc/caddy/Caddyfile
exec /phpmyadmin-docker-entrypoint.sh php-fpm