Compare commits
1 Commits
master/v0.
...
develop
| Author | SHA1 | Date |
|---|---|---|
|
|
8da2bd8eac |
15
DockerFile
15
DockerFile
|
|
@ -1,15 +0,0 @@
|
||||||
FROM python:3.8
|
|
||||||
|
|
||||||
RUN pip install --upgrade pip setuptools \
|
|
||||||
&& ./packages.sh
|
|
||||||
|
|
||||||
ADD chat /app/chat
|
|
||||||
ADD generalApp /app/generalApp
|
|
||||||
ADD TradeApp /app/TradeApp
|
|
||||||
ADD manage.py /app/manage.py
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN ./migrate.sh
|
|
||||||
|
|
||||||
CMD ["./run.sh"]
|
|
||||||
19
Dockerfile
19
Dockerfile
|
|
@ -1,14 +1,17 @@
|
||||||
FROM python:3.8
|
FROM python:3.8
|
||||||
FROM redis
|
|
||||||
|
|
||||||
RUN python -m venv venv
|
RUN pip install --upgrade pip setuptools
|
||||||
RUN source venv/bin/activate
|
|
||||||
|
|
||||||
CMD ["mkdir", "application"]
|
ADD chat ./chat
|
||||||
WORKDIR /application
|
ADD generalApp ./generalApp
|
||||||
|
ADD TradeApp ./TradeApp
|
||||||
RUN git clone git@github.com:TBS093A/trade-app-backend.git
|
ADD manage.py ./manage.py
|
||||||
|
ADD packages.sh ./packages.sh
|
||||||
|
ADD migrate.sh ./migrate.sh
|
||||||
|
ADD run.sh ./run.sh
|
||||||
|
|
||||||
RUN ./packages.sh
|
RUN ./packages.sh
|
||||||
RUN ./migrate.sh
|
RUN ./migrate.sh
|
||||||
RUN ./run.sh
|
|
||||||
|
# CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "TradeApp.wsgi"]
|
||||||
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:9090"]
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
||||||
python manage.py makemigrations
|
# python manage.py makemigrations
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
# python manage.py graph_models -a -g -o class_diagram_by_apps.png
|
# python manage.py graph_models -a -g -o class_diagram_by_apps.png
|
||||||
# python manage.py graph_models -a -o class_diagram.png
|
# python manage.py graph_models -a -o class_diagram.png
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ pip install django-cors-headers==3.5.0
|
||||||
pip install channels_redis==3.1.0
|
pip install channels_redis==3.1.0
|
||||||
pip install requests==2.24.0
|
pip install requests==2.24.0
|
||||||
pip install pyjwt==1.7.1
|
pip install pyjwt==1.7.1
|
||||||
|
pip install gunicorn==20.0.4
|
||||||
|
|
||||||
# for runing generate UML:
|
# for runing generate UML:
|
||||||
|
|
||||||
# pip install pydotplus
|
# pip install pydotplus
|
||||||
# pip install django_extensions
|
# pip install django_extensions
|
||||||
|
|
||||||
# apt-get install graphviz
|
# apt-get install graphviz
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue