-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
1a81da7
commit 3d50bc2
Showing
6 changed files
with
62 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.12 | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
gcc \ | ||
libpq-dev \ | ||
python3-dev | ||
|
||
RUN pip install --upgrade pip setuptools wheel | ||
RUN pip install GDX2py | ||
RUN pip install spinedb_api --verbose | ||
|
||
ENTRYPOINT [ "python", "src/app.py" ] |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.PHONY: run | ||
include .env | ||
export | ||
|
||
# target: help - Display callable targets. | ||
help: | ||
@egrep "^# target:" [Mm]akefile | ||
|
||
# target: run - Run local web server. | ||
run: | ||
python src/app.py |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
rescalc: | ||
image: rescalc | ||
build: | ||
context: . | ||
dockerfile: ./install/Dockerfile | ||
ports: | ||
- 5000:5000 |
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,9 +1,16 @@ | ||
|
||
services: | ||
rescalc: | ||
image: rescalc | ||
build: | ||
context: . | ||
dockerfile: ./install/Dockerfile | ||
ports: | ||
- 5000:5000 | ||
- 5000:5000 | ||
db: | ||
image: postgres:16 | ||
env_file: .env | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- pgdata:/var/lib/postgresql/data | ||
|
||
volumes: | ||
pgdata: |
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,12 +1,13 @@ | ||
wheel | ||
Flask==1.1.4 | ||
sqlalchemy | ||
flask_oidc | ||
okta | ||
jill | ||
pytest | ||
PySide2 | ||
-e git+https://github.com/spine-tools/spine-engine.git@7be63302466f2826ab80ffa0730e31a052770fc4#egg=spine_engine | ||
-e git+https://github.com/spine-tools/spine-items.git@f08c405fdcc4effc36da93d96239caf211718e92#egg=spine_items | ||
-e git+https://github.com/spine-tools/Spine-Database-API.git@c147f787f314413356ce3a59cf608d6bbcd4bfa4#egg=spinedb_api | ||
-e git+https://github.com/Spine-project/Spine-Toolbox.git@ee6c75e046f38f09e43314da9dfcf5bca8303d4a#egg=spinetoolbox | ||
# flask==2.3.3 | ||
# flask_oidc | ||
# jill | ||
# okta | ||
# pytest | ||
# pyside6 | ||
# spine_engine | ||
# sqlalchemy | ||
spinedb_api | ||
# -e git+https://github.com/spine-tools/spine-engine.git@7be63302466f2826ab80ffa0730e31a052770fc4#egg=spine_engine | ||
# -e git+https://github.com/spine-tools/spine-items.git@f08c405fdcc4effc36da93d96239caf211718e92#egg=spine_items | ||
# -e git+https://github.com/spine-tools/Spine-Database-API.git@c147f787f314413356ce3a59cf608d6bbcd4bfa4#egg=spinedb_api | ||
# -e git+https://github.com/Spine-project/Spine-Toolbox.git@ee6c75e046f38f09e43314da9dfcf5bca8303d4a#egg=spinetoolbox |