FIX - NAS DEPLOY: stabilize Tasker legacy rebuild

This commit is contained in:
DCCONSTRUCTIONS
2026-05-16 04:41:11 +03:00
parent 3b96a2613b
commit ae1e425974
7 changed files with 17 additions and 16 deletions
+8
View File
@@ -16,6 +16,7 @@ COMPOSE_OVERRIDE_FILE=${COMPOSE_OVERRIDE_FILE:-docker-compose.synology.override.
BUILD_BACKEND=${BUILD_BACKEND:-1}
BUILD_WEB=${BUILD_WEB:-1}
BUILD_ADMIN=${BUILD_ADMIN:-0}
BUILD_NETWORK=${BUILD_NETWORK:-host}
BACKEND_BUILDKIT=${BACKEND_BUILDKIT:-0}
WEB_BUILDKIT=${WEB_BUILDKIT:-0}
@@ -34,6 +35,10 @@ SMOKE_BASE_URL=${SMOKE_BASE_URL:-https://ops.nodedc.ru}
SMOKE_RESOLVE=${SMOKE_RESOLVE:-ops.nodedc.ru:443:127.0.0.1}
RECREATE_SERVICES=""
DOCKER_BUILD_NETWORK_ARGS=""
if [ -n "$BUILD_NETWORK" ]; then
DOCKER_BUILD_NETWORK_ARGS="--network=$BUILD_NETWORK"
fi
run() {
if [ -n "$SUDO_CMD" ]; then
@@ -84,6 +89,7 @@ if [ "$BUILD_BACKEND" = "1" ]; then
printf "== backend image: %s ==\n" "$PLANE_BACKEND_IMAGE"
cd "$SRC/apps/api"
run_env DOCKER_BUILDKIT="$BACKEND_BUILDKIT" "$DOCKER" build \
$DOCKER_BUILD_NETWORK_ARGS \
-t "$PLANE_BACKEND_IMAGE" \
-f Dockerfile.api .
RECREATE_SERVICES="$RECREATE_SERVICES api worker beat-worker"
@@ -95,6 +101,7 @@ if [ "$BUILD_WEB" = "1" ]; then
printf "== frontend image: %s ==\n" "$PLANE_FRONTEND_IMAGE"
cd "$SRC"
run_env DOCKER_BUILDKIT="$WEB_BUILDKIT" "$DOCKER" build \
$DOCKER_BUILD_NETWORK_ARGS \
--build-arg "VITE_NODEDC_LAUNCHER_URL=$VITE_NODEDC_LAUNCHER_URL" \
--build-arg "VITE_NODEDC_OIDC_LOGIN_ENABLED=$VITE_NODEDC_OIDC_LOGIN_ENABLED" \
-t "$PLANE_FRONTEND_IMAGE" \
@@ -108,6 +115,7 @@ if [ "$BUILD_ADMIN" = "1" ]; then
printf "== admin image: %s ==\n" "$PLANE_ADMIN_IMAGE"
cd "$SRC"
if run_env DOCKER_BUILDKIT="$ADMIN_BUILDKIT" "$DOCKER" build \
$DOCKER_BUILD_NETWORK_ARGS \
--build-arg "VITE_NODEDC_LAUNCHER_URL=$VITE_NODEDC_LAUNCHER_URL" \
-t "$PLANE_ADMIN_IMAGE" \
-f apps/admin/Dockerfile.admin .; then