Skip to content

Commit

Permalink
For 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter committed Feb 20, 2023
1 parent 1ab1168 commit 4abbde0
Show file tree
Hide file tree
Showing 31 changed files with 53 additions and 34 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ jobs:
- 20.04
- 22.04
s6_version:
- v3.1.2.0
- v3.1.2.1
- v3.1.3.0
- v3.1.4.0
env:
DOCKER_BUILDKIT: "1"
steps:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog


## 4.1.0 - 2023-02-20

Use [S6 Overlay v3.1.4.0](https://github.com/just-containers/s6-overlay/releases/tag/v3.1.4.0).


## 4.0.0 - 2023-02-09

Use the default `www-data` user and group for web server.
Expand Down
4 changes: 2 additions & 2 deletions OS_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
22.04
20.04
20.04
22.04
5 changes: 2 additions & 3 deletions S6_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
v3.1.2.0
v3.1.2.1
v3.1.3.0
v3.1.3.0
v3.1.4.0
2 changes: 1 addition & 1 deletion src/base-ubuntu/root/etc/services.d/900-crontab/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "$ENABLE_CRONTAB" == "true" ]; then
chown -R root:root /etc/cron.d
find /etc/cron.d -type f | xargs -I {} sed -i "s/webuser/${WEBUSER}/g" {}
find /etc/cron.d -type f | xargs -I {} chmod 0644 {}
bash -c 'sleep 5;find /etc/cron.d -type f 2>/dev/null | xargs -I {} touch {} 2>/dev/null' &
bash -c 'sleep 5; find /etc/cron.d -type f | xargs -I {} touch {} 2>/dev/null' &
fi
echo "⚙️ Starting crontab..."
MAILTO="" exec cron -flnL15
Expand Down
3 changes: 3 additions & 0 deletions src/servers/fpm-apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ ENV APACHE_START_SERVERS=2
ENV APACHE_THREAD_LIMIT=64
ENV APACHE_THREADS_PER_CHILD=25

# automatically create index.php
ENV AUTO_CREATE_INDEX_FILE="false"

################################################################################

LABEL traefik.enable=true
3 changes: 3 additions & 0 deletions src/servers/fpm-apache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ ENV APACHE_THREAD_LIMIT="64"
# This directive sets the number of threads created by each child process
ENV APACHE_THREADS_PER_CHILD="25"

# Automatically create index.php
ENV AUTO_CREATE_INDEX_FILE="true"

# ==========================================================

# You can easily change PHP-FPM configurations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
AllowOverride All
Require all granted
Options -Indexes +FollowSymLinks +MultiViews
DirectoryIndex index.php index.html index.htm
DirectoryIndex index.html index.htm index.php
</Directory>

# Set the Timeout
Expand Down Expand Up @@ -58,7 +58,7 @@
AllowOverride All
Require all granted
Options -Indexes +FollowSymLinks +MultiViews
DirectoryIndex index.php index.html index.htm
DirectoryIndex index.html index.htm index.php
</Directory>

# Set the Timeout
Expand Down
4 changes: 2 additions & 2 deletions src/servers/fpm-apache/root/etc/cont-init.d/900-apache2
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
WEBROOT="$(webhome)${APACHE_DOCUMENT_ROOT}"

wmd $WEBROOT
if [ ! -z "$(ls -1 /web/ | grep 'index\.\(ht?ml\|php\)')" ] && [ -z "$(ls -1 $WEBROOT/ | grep 'index\.\(ht?ml\|php\)')" ]; then
if [ "$AUTO_CREATE_INDEX_FILE" == "true" ] && [ -d /web/ ]; then
echo; echo "📄 Copying temporary index page to ${WEBROOT}"
wdo cp -rf /web/index.* $WEBROOT/
wdo cp -r /web/* $WEBROOT/
fi

if [ ! -d /var/log/apache2 ]; then
Expand Down
3 changes: 3 additions & 0 deletions src/servers/fpm-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ ENTRYPOINT ["/init"]
# sets env variables
ENV NGINX_DOCUMENT_ROOT=""

# automatically create index.php
ENV AUTO_CREATE_INDEX_FILE="false"

################################################################################

LABEL traefik.enable=true
3 changes: 3 additions & 0 deletions src/servers/fpm-nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ ENV NGINX_DOCUMENT_ROOT=""
# Set to "true" to fix permission for whole $WEBHOME
ENV FIX_WEBHOME_PERMISSION="false"

# Automatically create index.php
ENV AUTO_CREATE_INDEX_FILE="true"

# ==========================================================

# You can easily change PHP-FPM configurations
Expand Down
4 changes: 2 additions & 2 deletions src/servers/fpm-nginx/root/etc/cont-init.d/900-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ find /etc/nginx/sites-available -type f | \
xargs -I {} sed -i "s#root \/var\/www\/html;#root ${WEBROOT};#g" {}

wmd $WEBROOT
if [ ! -z "$(ls -1 /web/ | grep 'index\.\(ht?ml\|php\)')" ] && [ -z "$(ls -1 $WEBROOT/ | grep 'index\.\(ht?ml\|php\)')" ]; then
if [ "$AUTO_CREATE_INDEX_FILE" == "true" ] && [ -d /web/ ]; then
echo; echo "📄 Copying temporary index page to ${WEBROOT}"
wdo cp -rf /web/index.* $WEBROOT/
wdo cp -r /web/* $WEBROOT/
fi

if [ ! -d /var/log/nginx ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/webapps/cakephp4/root/startup/add-cakephp4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CAKE4_ROOT="$(webhome)"
CAKE4_CHECK="$CAKE4_ROOT/bin/cake"

if [ ! -f "$CAKE4_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $CAKE4_PROJECT from scratch"
rm -rf $CAKE4_ROOT/webroot $CAKE4_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/codeigniter4/root/startup/add-codeigniter4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CI4_ROOT="$(webhome)"
CI4_CHECK="$CI4_ROOT/${COMPOSER_VENDOR_DIR:-vendor}/codeigniter4"

if [ ! -d "$CI4_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $CI4_PROJECT from scratch"
rm -rf $CI4_ROOT/public $CI4_ROOT/index.*

Expand Down
4 changes: 2 additions & 2 deletions src/webapps/crater/root/startup/add-crater
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CRATER_ROOT="$(webhome)"
CRATER_ARTISAN="$CRATER_ROOT/artisan"

if [ ! -f "$CRATER_ARTISAN" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $CRATER_PROJECT from scratch"
rm -rf $CRATER_ROOT/public $CRATER_ROOT/index.*

Expand Down Expand Up @@ -44,6 +44,6 @@ if [ -f "$CRATER_ARTISAN" ]; then
fi

if [ "$CRATER_AUTO_MIGRATION" == "true" ]; then
las migrate:refresh --seed --force
las migrate:refresh --seed --force --isolated
fi
fi
2 changes: 1 addition & 1 deletion src/webapps/flarum/root/startup/add-flarum
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FLARUM_ROOT="$(webhome)"
FLARUM_CHECK="$FLARUM_ROOT/flarum"

if [ ! -f "$FLARUM_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $FLARUM_PROJECT from scratch"
rm -rf $FLARUM_ROOT/public $FLARUM_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/fuelphp/root/startup/add-fuelphp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FUEL_ROOT="$(webhome)"
FUEL_CHECK="$FUEL_ROOT/fuel/app"

if [ ! -d "$FUEL_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $FUEL_PROJECT from scratch"
rm -rf $FUEL_ROOT/public $FUEL_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/grav/root/startup/add-grav
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GRAV_ROOT="$(webhome)"
GRAV_CHECK="$GRAV_ROOT/bin/grav"

if [ ! -f "$GRAV_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $GRAV_PROJECT from scratch"
[ -x "$(command -v git)" ] || apt-oneshot git
rm -rf $GRAV_ROOT/web $GRAV_ROOT/index.*
Expand Down
2 changes: 1 addition & 1 deletion src/webapps/hyperf/root/startup/add-hyperf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ HYPERF_ROOT="$(webhome)"
HYPERF_BIN="$HYPERF_ROOT/bin/hyperf.php"

if [ ! -f "$HYPERF_BIN" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $HYPERF_PROJECT from scratch"
rm -rf $HYPERF_ROOT/public $HYPERF_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/kirby/root/startup/add-kirby
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ KIRBY_ROOT="$(webhome)"
KIRBY_CHECK="$KIRBY_ROOT/kirby"

if [ ! -d "$KIRBY_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $KIRBY_PROJECT from scratch"
rm -rf $KIRBY_ROOT/web $KIRBY_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/laminas/root/startup/add-laminas
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ZEND_ROOT="$(webhome)"
ZEND_CHECK="$ZEND_ROOT/module/Application"

if [ ! -d "$ZEND_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $ZEND_PROJECT from scratch"
rm -rf $ZEND_ROOT/public $ZEND_ROOT/index.*

Expand Down
4 changes: 2 additions & 2 deletions src/webapps/laravel/root/startup/add-laravel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LARAVEL_ROOT="$(webhome)"
LARAVEL_ARTISAN="$LARAVEL_ROOT/artisan"

if [ ! -f "$LARAVEL_ARTISAN" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $LARAVEL_PROJECT from scratch"
rm -rf $LARAVEL_ROOT/public $LARAVEL_ROOT/index.*

Expand Down Expand Up @@ -36,6 +36,6 @@ if [ -f "$LARAVEL_ARTISAN" ]; then
fi

if [ "$LARAVEL_AUTO_MIGRATION" == "true" ]; then
las migrate:refresh --seed --force
las migrate:refresh --seed --force --isolated
fi
fi
2 changes: 1 addition & 1 deletion src/webapps/mautic/root/startup/add-mautic
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAUTIC_ROOT="$(webhome)"
MAUTIC_CONSOLE="$MAUTIC_ROOT/bin/console"

if [ ! -f "$MAUTIC_CONSOLE" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $MAUTIC_PROJECT from scratch"
[ -x "$(command -v git)" ] || apt-oneshot git
rm -rf $MAUTIC_ROOT/docroot $MAUTIC_ROOT/index.*
Expand Down
2 changes: 1 addition & 1 deletion src/webapps/phpmyadmin/root/startup/add-phpmyadmin
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PMA_ROOT="$(webhome)"
PMA_CONFIG="$PMA_ROOT/config.inc.php"

if [ ! -f "$PMA_CONFIG" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $PMA_PROJECT from scratch"
rm -rf $PMA_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/slim/root/startup/add-slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SLIM_ROOT="$(webhome)"
SLIM_CHECK="$SLIM_ROOT/src/Application"

if [ ! -d "$SLIM_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $SLIM_PROJECT from scratch"
rm -rf $SLIM_ROOT/public $SLIM_ROOT/index.*

Expand Down
4 changes: 2 additions & 2 deletions src/webapps/statamic/root/startup/add-statamic
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ STATAMIC_BINARY="$STATAMIC_ROOT/please"
STATAMIC_ARTISAN="$STATAMIC_ROOT/artisan"

if [ ! -f "$STATAMIC_BINARY" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $STATAMIC_PROJECT from scratch"
rm -rf $STATAMIC_ROOT/public $STATAMIC_ROOT/index.*

Expand Down Expand Up @@ -38,6 +38,6 @@ if [ -f "$STATAMIC_ARTISAN" ]; then
fi

if [ "$STATAMIC_AUTO_MIGRATION" == "true" ]; then
las migrate:refresh --seed --force
las migrate:refresh --seed --force --isolated
fi
fi
2 changes: 1 addition & 1 deletion src/webapps/symfony/root/startup/add-symfony
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SYMFONY_CONSOLE="$SYMFONY_ROOT/bin/console"
SYMFONY_DEVKIT="$SYMFONY_ROOT/${COMPOSER_VENDOR_DIR:-vendor}/symfony/debug-bundle"

if [ ! -f "$SYMFONY_CONSOLE" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $SYMFONY_PROJECT from scratch"
rm -rf $SYMFONY_ROOT/public $SYMFONY_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/wordpress/root/startup/add-wordpress
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORDPRESS_ROOT="$(webhome)"
WORDPRESS_CHECK="$WORDPRESS_ROOT/wp-content"

if [ ! -d "$WORDPRESS_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing Wordpress from scratch"
rm -rf $WORDPRESS_ROOT/index.*

Expand Down
2 changes: 1 addition & 1 deletion src/webapps/yii/root/startup/add-yii
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ YII_ROOT="$(webhome)"
YII_CHECK="$YII_ROOT/yii"

if [ ! -f "$YII_CHECK" ]; then
wait-for-fpm &>/dev/null
wait-for-server &>/dev/null
echo; echo "🤖 Installing $YII_PROJECT from scratch"
rm -rf $YII_ROOT/web $YII_ROOT/index.*

Expand Down
1 change: 1 addition & 0 deletions tests/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ services:
- IMAGE_SUFFIX=
- PHP_VERSION=${PHP_VERSION:-8.2}
environment:
- AUTO_CREATE_INDEX_FILE=false
- PHP_DEFAULT_CHARSET=UTF-8
- PHPFPM_SOCK_PATH=/var/run/php/run.sock

Expand Down
2 changes: 2 additions & 0 deletions tests/docker-compose.webapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ services:
- ./data/phpinfo:/opt/www
ports:
- 9100:80
environment:
- AUTO_CREATE_INDEX_FILE=true

##############################################################################

Expand Down

0 comments on commit 4abbde0

Please sign in to comment.