Loading services/webapp/Dockerfile +8 −5 Original line number Diff line number Diff line Loading @@ -63,6 +63,14 @@ COPY db_conf.sh /db_conf.sh RUN mkdir /var/log/webapp/ && chown rosetta:rosetta /var/log/webapp/ #------------------------------ # Viz #------------------------------ RUN apt install python-pygraphviz graphviz-dev -y RUN pip3 install django-extensions pygraphviz # Example usage: rosetta/shell webapp "cd /opt/code && python3 manage.py graph_models core_app --exclude-models LoginToken,Text -o ORM.png" #------------------------------ # Supervisord #------------------------------ Loading @@ -81,8 +89,3 @@ COPY prestartup_webapp.sh /prestartup/ RUN touch -m /prestartup/prestartup_webapp.sh services/webapp/code/rosetta/settings.py +2 −1 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'rest_framework', 'rest_framework_swagger', 'django_extensions', ] MIDDLEWARE = [ Loading Loading
services/webapp/Dockerfile +8 −5 Original line number Diff line number Diff line Loading @@ -63,6 +63,14 @@ COPY db_conf.sh /db_conf.sh RUN mkdir /var/log/webapp/ && chown rosetta:rosetta /var/log/webapp/ #------------------------------ # Viz #------------------------------ RUN apt install python-pygraphviz graphviz-dev -y RUN pip3 install django-extensions pygraphviz # Example usage: rosetta/shell webapp "cd /opt/code && python3 manage.py graph_models core_app --exclude-models LoginToken,Text -o ORM.png" #------------------------------ # Supervisord #------------------------------ Loading @@ -81,8 +89,3 @@ COPY prestartup_webapp.sh /prestartup/ RUN touch -m /prestartup/prestartup_webapp.sh
services/webapp/code/rosetta/settings.py +2 −1 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'rest_framework', 'rest_framework_swagger', 'django_extensions', ] MIDDLEWARE = [ Loading