tester in docker works

This commit is contained in:
Egor Matveev
2021-11-02 23:33:38 +03:00
parent a45d3e104b
commit 928cc4489d
35 changed files with 321 additions and 184 deletions

6
scripts/create_worker.sh Executable file
View File

@@ -0,0 +1,6 @@
apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
python3 -m ensurepip
apk update && apk add postgresql-dev gcc python3-dev musl-dev jpeg-dev zlib-dev libjpeg
pip3 install --no-cache --upgrade pip setuptools
pip3 install -r requirements.txt
python3 manage.py receive

3
scripts/runserver.sh Executable file
View File

@@ -0,0 +1,3 @@
python manage.py migrate
python manage.py update_languages
python manage.py runserver 0.0.0.0:8000