Restructure to user s6-overlay properly

This commit is contained in:
2024-01-22 20:37:00 -06:00
parent dff1223c9d
commit 466c11f6f6
21 changed files with 20 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.s
ADD https://bitbucket.org/Gethec/projecttools/raw/master/DockerUtilities/ContainerTools /usr/bin/ContainerTools ADD https://bitbucket.org/Gethec/projecttools/raw/master/DockerUtilities/ContainerTools /usr/bin/ContainerTools
# Install S6-Overlay and Wait-For-It # Install S6-Overlay and Wait-For-It
RUN chmod u+x /usr/local/bin/wait-for-it /etc/cont-init.d/initializer && \ RUN chmod u+x /usr/local/bin/wait-for-it /etc/s6-overlay/scripts/initializer && \
tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz && \ tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz && \
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && \ tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && \
# Remove preinstalled conf files # Remove preinstalled conf files

View File

@@ -0,0 +1 @@
initialize

View File

@@ -0,0 +1,3 @@
#!/command/with-contenv bash
/usr/sbin/crond -fL /dev/null

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
oneshot

View File

@@ -0,0 +1 @@
/etc/s6-overlay/scripts/initializer

View File

@@ -0,0 +1 @@
initialize

View File

@@ -1,2 +1,3 @@
#!/command/execlineb -P #!/command/with-contenv bash
/usr/sbin/nginx -g "daemon off;" /usr/sbin/nginx -g "daemon off;"

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
initialize

View File

@@ -1,2 +1,3 @@
#!/command/execlineb -P #!/command/with-contenv bash
/usr/sbin/php-fpm -Fc /etc/php /usr/sbin/php-fpm -Fc /etc/php

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
initialize

View File

@@ -1,3 +1,4 @@
#!/command/execlineb -P #!/command/with-contenv bash
s6-setuidgid nginx s6-setuidgid nginx
/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 /usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3

View File

@@ -0,0 +1 @@
longrun

View File

@@ -1,2 +0,0 @@
#!/command/execlineb -P
/usr/sbin/crond -fL /dev/null