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
+1 -2
View File
@@ -45,7 +45,6 @@ COPY plane plane/
COPY templates templates/
COPY package.json package.json
RUN apk --no-cache add "bash~=5.2"
COPY ./bin ./bin/
RUN mkdir -p /code/plane/logs
@@ -55,4 +54,4 @@ RUN chmod -R 777 /code
# Expose container port and run entry point script
EXPOSE 8000
CMD ["./bin/docker-entrypoint-api.sh"]
CMD ["./bin/docker-entrypoint-api.sh"]
@@ -1,12 +1,9 @@
#!/bin/bash
#!/bin/sh
set -e
python manage.py wait_for_db
# Wait for migrations
python manage.py wait_for_migrations
# Create the default bucket
#!/bin/bash
# Collect system information
HOSTNAME=$(hostname)
MAC_ADDRESS=$(ip link show | awk '/ether/ {print $2}' | head -n 1)
@@ -1,12 +1,9 @@
#!/bin/bash
#!/bin/sh
set -e
python manage.py wait_for_db
# Wait for migrations
python manage.py wait_for_migrations
# Create the default bucket
#!/bin/bash
# Collect system information
HOSTNAME=$(hostname)
MAC_ADDRESS=$(ip link show | awk '/ether/ {print $2}' | head -n 1)
@@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh
set -e
python manage.py wait_for_db
# Wait for migrations
python manage.py wait_for_migrations
# Run the processes
celery -A plane beat -l info
celery -A plane beat -l info
@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh
set -e
python manage.py wait_for_db $1
python manage.py migrate $1
python manage.py migrate $1
@@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh
set -e
python manage.py wait_for_db
# Wait for migrations
python manage.py wait_for_migrations
# Run the processes
celery -A plane worker -l info
celery -A plane worker -l info