Initial commit
All checks were successful
Update Docker Hub Description / dockerHubDescription (push) Successful in 13s
Docker Image CI / build_docker_images (push) Successful in 12m11s

This commit is contained in:
2025-11-11 16:51:34 +01:00
committed by GianLuca Vagnuzzi
commit 8e7f5bfb48
9 changed files with 855 additions and 0 deletions

30
rootfs/entrypoint.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
set -x
function custom_bashrc {
echo '
export LS_OPTIONS="--color=auto"
alias "ls=ls $LS_OPTIONS"
alias "ll=ls $LS_OPTIONS -la"
alias "l=ls $LS_OPTIONS -lA"
'
}
function set_bashrc {
echo "-----------------------------------------"
echo " .bashrc file setup..."
echo "-----------------------------------------"
custom_bashrc | tee /root/.bashrc
echo 'export PS1="\[\e[35m\][\[\e[31m\]\u\[\e[36m\]@\[\e[32m\]\h\[\e[90m\] \w\[\e[35m\]]\[\e[0m\]# "' >> /root/.bashrc
for i in $(ls /home); do echo 'export PS1="\[\e[35m\][\[\e[33m\]\u\[\e[36m\]@\[\e[32m\]\h\[\e[90m\] \w\[\e[35m\]]\[\e[0m\]$ "' >> /home/${i}/.bashrc; done
}
set_bashrc
CMD="$@"
[ -z "$CMD" ] && export CMD="supervisord -c /etc/supervisor/supervisord.conf"
exec $CMD
exit $?