feat(docker): update Docker configuration for Arvan Cloud registry and add API documentation generation
This commit is contained in:
16
docker/apt/configure-arvan-mirror.sh
Normal file
16
docker/apt/configure-arvan-mirror.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
sources="/etc/apt/sources.list.d/debian.sources"
|
||||
|
||||
if [ ! -f "$sources" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sed -i \
|
||||
-e 's|https\?://deb\.debian\.org/debian|http://mirror.arvancloud.ir/debian|g' \
|
||||
-e 's|https\?://security\.debian\.org/debian-security|http://mirror.arvancloud.ir/debian|g' \
|
||||
-e 's| bookworm-updates||g' \
|
||||
"$sources"
|
||||
|
||||
sed -i '/mirror\.arvancloud\.ir\/debian-security/d' "$sources"
|
||||
3
docker/daemon.json.example
Normal file
3
docker/daemon.json.example
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"registry-mirrors": ["https://docker.arvancloud.ir"]
|
||||
}
|
||||
@@ -7,6 +7,7 @@ mkdir -p \
|
||||
storage/framework/sessions \
|
||||
storage/framework/views \
|
||||
storage/logs \
|
||||
storage/api-docs \
|
||||
bootstrap/cache
|
||||
|
||||
if [ ! -L public/storage ]; then
|
||||
@@ -25,6 +26,10 @@ if [ -z "${APP_KEY:-}" ]; then
|
||||
fi
|
||||
|
||||
if [ "${APP_ENV:-production}" = "production" ]; then
|
||||
if php artisan list --raw 2>/dev/null | grep -q '^l5-swagger:generate'; then
|
||||
php artisan l5-swagger:generate --no-interaction
|
||||
fi
|
||||
|
||||
php artisan config:cache --no-interaction
|
||||
php artisan event:cache --no-interaction
|
||||
php artisan view:cache --no-interaction
|
||||
|
||||
5736
docker/php/install-php-extensions
Executable file
5736
docker/php/install-php-extensions
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user