Skip to content

Commit aeadfa2

Browse files
committed
try beta
1 parent b1a9b2b commit aeadfa2

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Build and push
4343
uses: docker/build-push-action@v6
4444
with:
45-
platforms: linux/amd64,linux/arm64
45+
# platforms: linux/amd64,linux/arm64
4646
builder: ${{ steps.buildx.outputs.name }}
4747
file: ${{ matrix.php-version }}/Dockerfile
4848
tags: ${{ steps.meta.outputs.tags }}

8.4/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM serversideup/php:8.4-fpm-nginx-alpine
1+
FROM serversideup/php:beta-8.4-fpm-nginx-alpine
22

33
COPY --chmod=755 common/etc/entrypoint.d /etc/entrypoint.d
44
COPY --chmod=755 --chown=www-data:www-data common/etc/nginx /etc/nginx
@@ -25,10 +25,7 @@ ENV PHP_FPM_PM_MAX_SPARE_SERVERS=3
2525
ENV AUTORUN_ENABLED=true
2626
ENV AUTORUN_LARAVEL_MIGRATION=true
2727
ENV AUTORUN_LARAVEL_STORAGE_LINK=true
28-
ENV AUTORUN_LARAVEL_CONFIG_CACHE=true
29-
ENV AUTORUN_LARAVEL_EVENT_CACHE=true
30-
ENV AUTORUN_LARAVEL_ROUTE_CACHE=true
31-
ENV AUTORUN_LARAVEL_VIEW_CACHE=true
28+
ENV AUTORUN_LARAVEL_OPTIMIZE=true
3229
ENV AUTORUN_LARAVEL_FILAMENT=true
3330

3431
ENV HEALTHCHECK_PATH=/up

common/etc/entrypoint.d/0-container-info.sh

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ if [ "$SHOW_WELCOME_MESSAGE" = "false" ] || [ "$LOG_OUTPUT_LEVEL" = "off" ] || [
44
echo "👉 $0: Container info was display was skipped."
55
fi
66
# Skip the rest of the script
7-
return 0
7+
exit 0
88
fi
99

10+
# Get OPcache status
1011
PHP_OPCACHE_STATUS=$(php -r 'echo ini_get("opcache.enable");')
1112

1213
if [ "$PHP_OPCACHE_STATUS" = "1" ]; then
@@ -15,19 +16,32 @@ else
1516
PHP_OPCACHE_MESSAGE="❌ Disabled"
1617
fi
1718

19+
# Get memory limits
20+
MEMORY_LIMIT=$(php -r 'echo ini_get("memory_limit");')
21+
UPLOAD_LIMIT=$(php -r 'echo ini_get("upload_max_filesize");')
22+
1823
echo '
1924
-------------------------------------
2025
ℹ️ Container Information
21-
-------------------------------------'
22-
echo "
23-
OS: $(. /etc/os-release; echo "${PRETTY_NAME}")
24-
Docker user: $(whoami)
25-
Docker uid: $(id -u)
26-
Docker gid: $(id -g)
27-
OPcache: $PHP_OPCACHE_MESSAGE
28-
PHP Version: $(php -r 'echo phpversion();')
29-
Image Version: $(cat /etc/serversideup-php-version)
30-
"
26+
-------------------------------------
27+
📦 Versions
28+
• Image: '"$(cat /etc/serversideup-php-version)"'
29+
• PHP: '"$(php -r 'echo phpversion();')"'
30+
• OS: '"$(. /etc/os-release; echo "${PRETTY_NAME}")"'
31+
32+
👤 Container User
33+
• User: '"$(whoami)"'
34+
• UID: '"$(id -u)"'
35+
• GID: '"$(id -g)"'
36+
37+
⚡ Performance
38+
• OPcache: '"$PHP_OPCACHE_MESSAGE"'
39+
• Memory Limit: '"$MEMORY_LIMIT"'
40+
• Upload Limit: '"$UPLOAD_LIMIT"'
41+
42+
🔄 Runtime
43+
• Docker CMD: '"$DOCKER_CMD"'
44+
'
3145

3246
if [ "$PHP_OPCACHE_STATUS" = "0" ]; then
3347
echo "👉 [NOTICE]: Improve PHP performance by setting PHP_OPCACHE_ENABLE=1 (recommended for production)."

0 commit comments

Comments
 (0)