Compare commits
No commits in common. "develop" and "master/v0.1.0" have entirely different histories.
develop
...
master/v0.
|
|
@ -0,0 +1,15 @@
|
||||||
|
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,17 +1,14 @@
|
||||||
FROM python:3.8
|
FROM python:3.8
|
||||||
|
FROM redis
|
||||||
|
|
||||||
RUN pip install --upgrade pip setuptools
|
RUN python -m venv venv
|
||||||
|
RUN source venv/bin/activate
|
||||||
|
|
||||||
ADD chat ./chat
|
CMD ["mkdir", "application"]
|
||||||
ADD generalApp ./generalApp
|
WORKDIR /application
|
||||||
ADD TradeApp ./TradeApp
|
|
||||||
ADD manage.py ./manage.py
|
RUN git clone git@github.com:TBS093A/trade-app-backend.git
|
||||||
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