Skip to content

Commit

Permalink
docker 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
open-risk committed Oct 10, 2024
1 parent 05f53bf commit ce55c9f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 23 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ ChangeLog
===========================
PLEASE NOTE THIS IS ONLY A BETA RELEASE. THE OPENNPL API IS STILL UNSTABLE



v0.6.4 (20-06-2024)
-------------------
* Bugs: REST API for both NPL and SFLP templates
Expand Down
21 changes: 14 additions & 7 deletions Dockerfile
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]"
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions createadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
4 changes: 2 additions & 2 deletions openNPL/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
'django.contrib.messages',
'django.contrib.humanize',
'django.contrib.staticfiles',
'django_json_widget',
'django_extensions',
'import_export',
'rest_framework',
'django_htmx',
'drf_yasg',
'treebeard',
'django_countries',
'leaflet',
'prettyjson',
'markdownfield',
'start',
'npl_portfolio',
'sflp_portfolio',
'debug_toolbar',
'django_extensions',
'behave_django'
]

Expand Down
28 changes: 14 additions & 14 deletions requirements.txt
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

0 comments on commit ce55c9f

Please sign in to comment.