-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
5 changed files
with
33 additions
and
23 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM python:3.10-slim | ||
LABEL version="0.6.1" | ||
LABEL version="0.6.4" | ||
LABEL author="Open Risk <www.openriskmanagement.com>" | ||
LABEL description="openNPL: Open Source Credit Portfolio Management" | ||
LABEL maintainer="[email protected]" | ||
|
@@ -20,12 +20,19 @@ WORKDIR /opennpl | |
COPY requirements.txt /opennpl/ | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
COPY . /opennpl/ | ||
RUN rm -f /opennpl/venv | ||
RUN rm -f /opennpl/db.sqlite3 | ||
RUN rm -rf /opennpl/npl_portfolio/migrations/* | ||
RUN rm -rf /opennpl/sflp_portfolio/migrations/* | ||
RUN rm -rf /opennpl/start/migrations/* | ||
|
||
COPY locale/ /opennpl/locale/ | ||
COPY openNPL/ /opennpl/openNPL/ | ||
COPY start/ /opennpl/start/ | ||
COPY common/ /opennpl/common/ | ||
COPY templates/ /opennpl/templates/ | ||
COPY sflp_portfolio/ /opennpl/sflp_portfolio/ | ||
COPY npl_portfolio/ /opennpl/npl_portfolio/ | ||
COPY static/ /opennpl/static/ | ||
|
||
COPY manage.py /opennpl/ | ||
COPY createadmin.py /opennpl/ | ||
|
||
RUN python /opennpl/manage.py makemigrations start | ||
RUN python /opennpl/manage.py makemigrations npl_portfolio | ||
RUN python /opennpl/manage.py makemigrations sflp_portfolio | ||
|
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 |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
|
||
os.environ['DJANGO_SETTINGS_MODULE'] = 'openNPL.settings' | ||
django.setup() | ||
|
||
from django.contrib.auth.models import User | ||
|
||
User.objects.create_superuser('admin', '[email protected]', 'admin') |
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
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
Django | ||
djangorestframework | ||
drf-yasg | ||
django-model-utils | ||
django-jazzmin | ||
numpy | ||
pandas | ||
scipy | ||
Markdown | ||
Pillow | ||
django-leaflet | ||
django-countries | ||
django-jazzmin | ||
django-json-widget | ||
django-prettyjson | ||
jsonfield | ||
Markdown | ||
django-jsoneditor | ||
django-markdownfield | ||
django-treebeard | ||
django-import-export | ||
behave-django | ||
django-countries | ||
django-extensions | ||
django-htmx | ||
numpy | ||
pandas | ||
scipy | ||
Pillow | ||
tablib | ||
django-debug-toolbar | ||
setuptools | ||
django-extensions | ||
django-model-utils | ||
Sphinx | ||
sphinx-rtd-theme | ||
behave-django | ||
tablib | ||
setuptools | ||
|