Mise à jour
Séparation de l'environnement de build pour consommer moins d'espace lors de la construction d'une nouvelle image.
This commit is contained in:
7
alpine/web-builder/service/20-cron/run
Normal file
7
alpine/web-builder/service/20-cron/run
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
. /etc/service/template
|
||||
|
||||
msglog green "Starting Cron..."
|
||||
# Touch cron files to fix 'NUMBER OF HARD LINKS > 1' issue. See https://github.com/phusion/baseimage-docker/issues/198
|
||||
touch -c /etc/crontab /etc/cron.*/* /var/spool/cron/crontabs/*
|
||||
exec /usr/sbin/crond -f -L /dev/stdout
|
5
alpine/web-builder/service/30-apache2/run
Normal file
5
alpine/web-builder/service/30-apache2/run
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
. /etc/service/template
|
||||
|
||||
msglog green "Starting Apache..."
|
||||
exec /usr/sbin/httpd -D FOREGROUND
|
6
alpine/web-builder/service/90-glpi_init/run
Normal file
6
alpine/web-builder/service/90-glpi_init/run
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
. /etc/service/template
|
||||
|
||||
msglog green "Starting glpi_init.sh..."
|
||||
/root/glpi_init.sh
|
||||
sleep infinity
|
19
alpine/web-builder/service/template
Normal file
19
alpine/web-builder/service/template
Normal file
@ -0,0 +1,19 @@
|
||||
NORMAL=''
|
||||
RED=''
|
||||
GREEN=''
|
||||
|
||||
msglog() {
|
||||
case "${1}" in
|
||||
green)
|
||||
TEXT_COLOR="${GREEN}"
|
||||
;;
|
||||
red)
|
||||
TEXT_COLOR="${RED}"
|
||||
;;
|
||||
normal)
|
||||
TEXT_COLOR="${NORMAL}"
|
||||
;;
|
||||
esac
|
||||
DATE=$(date '+%Y %b %d %H:%M:%S')
|
||||
echo ${DATE} ${TEXT_COLOR}${2}${NORMAL}
|
||||
}
|
Reference in New Issue
Block a user