-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MiiRaGe
committed
Apr 15, 2024
1 parent
6016d5b
commit 1a7f994
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /bin/sh | ||
|
||
docker buildx build -f Dockerfile.celerybeat --platform linux/arm64 -t miirage/rpi-cluster:miilibrary-celery-beat-$1 -t miirage/rpi-cluster:miilibrary-celery-beat-latest --push . | ||
docker buildx build -f Dockerfile.celeryworker --platform linux/arm64 -t miirage/rpi-cluster:miilibrary-celery-worker-$1 -t miirage/rpi-cluster:miilibrary-celery-worker-latest --push . | ||
docker buildx build -f Dockerfile.webserver --platform linux/arm64 -t miirage/rpi-cluster:miilibrary-webserver-$1 -t miirage/rpi-cluster:miilibrary-webserver-latest --push . | ||
docker buildx build -f Dockerfile.flower --platform linux/arm64 -t miirage/rpi-cluster:miilibrary-flower-$1 -t miirage/rpi-cluster:miilibrary-flower-latest --push . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.12.3-bullseye | ||
|
||
RUN apt install tzdata | ||
|
||
ADD requirements.txt / | ||
|
||
RUN pip install --upgrade pip && pip install --no-input --upgrade --force-reinstall -r requirements.txt | ||
|
||
ENV TZ=Europe/Stockholm | ||
|
||
COPY . /app | ||
|
||
RUN chmod 755 /app/start_app.sh | ||
|
||
WORKDIR /app | ||
|
||
CMD ["/bin/bash", "-c", "python /app/manage.py migrate && celery -A mii_celery beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.12.3-bullseye | ||
|
||
RUN apt install tzdata | ||
|
||
ADD requirements.txt / | ||
|
||
RUN pip install --upgrade pip && pip install --no-input --upgrade --force-reinstall -r requirements.txt | ||
|
||
ENV TZ=Europe/Stockholm | ||
|
||
COPY . /app | ||
|
||
RUN chmod 755 /app/start_app.sh | ||
|
||
WORKDIR /app | ||
|
||
CMD ["/bin/bash", "-c", "python /app/manage.py migrate && celery -A mii_celery worker -l info --concurrency=2 "] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3.12.3-bullseye | ||
|
||
RUN apt install tzdata | ||
|
||
ADD requirements.txt / | ||
|
||
RUN pip install --upgrade pip && pip install --no-input --upgrade --force-reinstall -r requirements.txt | ||
|
||
ENV TZ=Europe/Stockholm | ||
|
||
COPY . /app | ||
|
||
RUN chmod 755 /app/start_app.sh | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 5555 | ||
|
||
CMD ["/bin/bash", "-c", "python /app/manage.py migrate && celery -A mii_celery flower"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3.12.3-bullseye | ||
|
||
RUN apt install tzdata | ||
|
||
ADD requirements.txt / | ||
|
||
RUN pip install --upgrade pip && pip install --no-input --upgrade --force-reinstall -r requirements.txt | ||
|
||
ENV TZ=Europe/Stockholm | ||
|
||
COPY . /app | ||
|
||
RUN chmod 755 /app/start_app.sh | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["/bin/bash", "-c", "python /app/manage.py migrate && /app/manage.py collectstatic --noinput && gunicorn mii_common.wsgi:application"] |