-
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.
* update app api with respect to marketplace capabilities * add functionality to disable direct upload to cache * update docker compose files * update setup.cfg * update setup.cfg, update main.py, update docker compose * update README
- Loading branch information
1 parent
2ca2670
commit 0deefa6
Showing
12 changed files
with
462 additions
and
153 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ A simple [FastAPI-framework](https://fastapi.tiangolo.com/) for running asynchro | |
## Authors | ||
|
||
[Matthias Büschelberger](mailto:[email protected]) (Fraunhofer Institute for Mechanics of Materials IWM) | ||
[Kiran Kumaraswamy](mailto:[email protected]) (Fraunhofer Institute for Mechanics of Materials IWM) | ||
|
||
## Documentation | ||
|
||
|
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,99 @@ | ||
version: "3" | ||
|
||
services: | ||
fastapi: | ||
image: "registry.gitlab.cc-asp.fraunhofer.de/reaxpro/fastapi-celery:${BUILD_VERSION:-latest}-production" | ||
ports: | ||
- "${REAXPRO_FASTAPI_PORT:-8080}:8080" | ||
environment: | ||
REAXPRO_REDIS_TYPE: redis | ||
REAXPRO_REDIS_HOST: redis | ||
REAXPRO_REDIS_PORT: 6379 | ||
REAXPRO_REDIS_DB: 3 | ||
REAXPRO_SCHEMAS: ${REAXPRO_SCHEMAS} | ||
REAXPRO_MINIO_ENDPOINT: minio:9000 | ||
REAXPRO_MINIO_USER: ${REAXPRO_MINIO_USER} | ||
REAXPRO_MINIO_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
REAXPRO_FASTAPI_HOST: ${REAXPRO_FASTAPI_HOST:-'0.0.0.0'} | ||
REAXPRO_FASTAPI_PORT: ${REAXPRO_FASTAPI_PORT:-8080} | ||
REAXPRO_AUTHENTICATION_DEPENDENCIES: ${AUTHENTICATION_DEPENDENCIES:-True} | ||
PYTHON_BIN: ${PYTHON_BIN:-python3} | ||
KEYCLOAK_HOST: ${KEYCLOAK_HOST} | ||
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID} | ||
KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET} | ||
KEYCLOAK_REALM_NAME: ${KEYCLOAK_REALM_NAME} | ||
APP_MODE: server | ||
depends_on: | ||
- redis | ||
- minio | ||
networks: | ||
- reaxpro | ||
|
||
headworker: | ||
image: "registry.gitlab.cc-asp.fraunhofer.de/reaxpro/fastapi-celery:${BUILD_VERSION:-latest}-production" | ||
environment: | ||
REAXPRO_WORKER_NAME: simphony-workflows | ||
REAXPRO_REDIS_TYPE: redis | ||
REAXPRO_REDIS_HOST: redis | ||
REAXPRO_REDIS_PORT: 6379 | ||
REAXPRO_REDIS_DB: 3 | ||
REAXPRO_WORKER_MAPPING: ${REAXPRO_WORKER_MAPPING} | ||
REAXPRO_MINIO_ENDPOINT: minio:9000 | ||
REAXPRO_MINIO_USER: ${REAXPRO_MINIO_USER} | ||
REAXPRO_MINIO_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
REAXPRO_WORKER_CONCURRENCY: ${REAXPRO_WORKER_CONCURRENCY:-5} | ||
PYTHON_BIN: ${PYTHON_BIN:-python3} | ||
APP_MODE: worker | ||
depends_on: | ||
- redis | ||
- minio | ||
networks: | ||
- reaxpro | ||
|
||
catalyticfoam: | ||
image: "registry.gitlab.cc-asp.fraunhofer.de/reaxpro/fastapi-celery:catalyticfoam-${BUILD_VERSION:-latest}-production" | ||
environment: | ||
REAXPRO_WORKER_NAME: simphony-catalyticfoam | ||
REAXPRO_WRAPPER_NAME: osp.wrappers.simcatalyticfoam.simcatalyticfoam:SimCatalyticFoamSession | ||
REAXPRO_REDIS_TYPE: redis | ||
REAXPRO_REDIS_HOST: redis | ||
REAXPRO_REDIS_PORT: 6379 | ||
REAXPRO_REDIS_DB: 3 | ||
REAXPRO_MINIO_ENDPOINT: minio:9000 | ||
REAXPRO_MINIO_USER: ${REAXPRO_MINIO_USER} | ||
REAXPRO_MINIO_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
REAXPRO_WORKER_CONCURRENCY: ${REAXPRO_WORKER_CONCURRENCY:-5} | ||
PYTHON_BIN: ${PYTHON_BIN:-python3} | ||
APP_MODE: worker | ||
depends_on: | ||
- redis | ||
- minio | ||
networks: | ||
- reaxpro | ||
|
||
redis: | ||
image: redis:latest | ||
volumes: | ||
- redis-data:/data | ||
networks: | ||
- reaxpro | ||
|
||
minio: | ||
image: quay.io/minio/minio | ||
ports: | ||
- 9000 | ||
environment: | ||
MINIO_ROOT_USER: ${REAXPRO_MINIO_USER} | ||
MINIO_ROOT_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
volumes: | ||
- minio-data:/data | ||
command: server /data | ||
networks: | ||
- reaxpro | ||
|
||
volumes: | ||
redis-data: | ||
minio-data: | ||
|
||
networks: | ||
reaxpro: |
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,125 @@ | ||
version: "3" | ||
|
||
services: | ||
fastapi: | ||
image: "registry.gitlab.cc-asp.fraunhofer.de/reaxpro/fastapi-celery:${BUILD_VERSION:-latest}-prod" | ||
build: | ||
context: "." | ||
dockerfile: Dockerfile.api | ||
target: production | ||
args: | ||
- INSTALL_SLURM=${INSTALL_SLURM:-no} | ||
- SLURM_VERSION=$SLURM_VERSION | ||
- WRAPPER_DEPS_INSTALL=$WRAPPER_DEPS_INSTALL | ||
- WRAPPER_DEPS_EXTRA=$WRAPPER_DEPS_EXTRA | ||
ports: | ||
- "${REAXPRO_FASTAPI_PORT:-8080}:${REAXPRO_FASTAPI_PORT:-8080}" | ||
environment: | ||
REAXPRO_REDIS_TYPE: redis | ||
REAXPRO_REDIS_HOST: redis | ||
REAXPRO_REDIS_PORT: 6379 | ||
REAXPRO_REDIS_DB: 3 | ||
REAXPRO_REDIS_TEST_DB: 9 | ||
REAXPRO_AUTHENTICATION_DEPENDENCIES: ${AUTHENTICATION_DEPENDENCIES} | ||
REAXPRO_SCHEMAS: ${REAXPRO_SCHEMAS} | ||
REAXPRO_MINIO_ENDPOINT: minio:9000 | ||
REAXPRO_MINIO_USER: ${REAXPRO_MINIO_USER} | ||
REAXPRO_MINIO_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
REAXPRO_FASTAPI_HOST: ${REAXPRO_FASTAPI_HOST:-'0.0.0.0'} | ||
REAXPRO_FASTAPI_PORT: ${REAXPRO_FASTAPI_PORT:-8080} | ||
PYTHON_BIN: ${PYTHON_BIN:-python3} | ||
APP_MODE: server | ||
depends_on: | ||
- redis | ||
- minio | ||
networks: | ||
- reaxpro | ||
|
||
headworker: | ||
image: "registry.gitlab.cc-asp.fraunhofer.de/reaxpro/fastapi-celery:${BUILD_VERSION:-latest}-production" | ||
build: | ||
context: "." | ||
dockerfile: Dockerfile.api | ||
target: production | ||
args: | ||
- WRAPPER_DEPS_INSTALL=$WRAPPER_DEPS_INSTALL | ||
- WRAPPER_DEPS_EXTRA=$WRAPPER_DEPS_EXTRA | ||
- INSTALL_SLURM=${INSTALL_SLURM:-no} | ||
- SLURM_VERSION=$SLURM_VERSION | ||
environment: | ||
REAXPRO_WORKER_NAME: simphony-workflows | ||
REAXPRO_REDIS_TYPE: redis | ||
REAXPRO_REDIS_HOST: redis | ||
REAXPRO_REDIS_PORT: 6379 | ||
REAXPRO_REDIS_DB: 3 | ||
REAXPRO_REDIS_TEST_DB: 9 | ||
REAXPRO_WORKER_MAPPING: ${REAXPRO_WORKER_MAPPING} | ||
REAXPRO_MINIO_ENDPOINT: minio:9000 | ||
REAXPRO_MINIO_USER: ${REAXPRO_MINIO_USER} | ||
REAXPRO_MINIO_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
REAXPRO_WORKER_CONCURRENCY: ${REAXPRO_WORKER_CONCURRENCY:-5} | ||
PYTHON_BIN: ${PYTHON_BIN:-python3} | ||
APP_MODE: worker | ||
depends_on: | ||
- redis | ||
- minio | ||
networks: | ||
- reaxpro | ||
|
||
catalyticfoam: | ||
image: "registry.gitlab.cc-asp.fraunhofer.de/reaxpro/fastapi-celery:catalyticfoam-${BUILD_VERSION:-latest}-production" | ||
build: | ||
context: "." | ||
target: production | ||
dockerfile: Dockerfile.catalyticfoam | ||
args: | ||
- BASE_IMAGE=$BASE_IMAGE | ||
- WRAPPER_TAG=$WRAPPER_TAG | ||
- INSTALL_SLURM=${INSTALL_SLURM:-no} | ||
- SLURM_VERSION=$SLURM_VERSION | ||
environment: | ||
REAXPRO_WORKER_NAME: simphony-catalyticfoam | ||
REAXPRO_WRAPPER_NAME: osp.wrappers.simcatalyticfoam.simcatalyticfoam:SimCatalyticFoamSession | ||
REAXPRO_REDIS_TYPE: redis | ||
REAXPRO_REDIS_HOST: redis | ||
REAXPRO_REDIS_PORT: 6379 | ||
REAXPRO_REDIS_DB: 3 | ||
REAXPRO_REDIS_TEST_DB: 9 | ||
REAXPRO_MINIO_ENDPOINT: minio:9000 | ||
REAXPRO_MINIO_USER: ${REAXPRO_MINIO_USER} | ||
REAXPRO_MINIO_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
REAXPRO_WORKER_CONCURRENCY: ${REAXPRO_WORKER_CONCURRENCY:-5} | ||
PYTHON_BIN: ${PYTHON_BIN:-python3} | ||
APP_MODE: worker | ||
depends_on: | ||
- redis | ||
- minio | ||
networks: | ||
- reaxpro | ||
|
||
redis: | ||
image: redis:latest | ||
volumes: | ||
- redis-data:/data | ||
networks: | ||
- reaxpro | ||
|
||
minio: | ||
image: quay.io/minio/minio | ||
ports: | ||
- 9000 | ||
environment: | ||
MINIO_ROOT_USER: ${REAXPRO_MINIO_USER} | ||
MINIO_ROOT_PASSWORD: ${REAXPRO_MINIO_PASSWORD} | ||
volumes: | ||
- minio-data:/data | ||
command: server /data | ||
networks: | ||
- reaxpro | ||
|
||
volumes: | ||
redis-data: | ||
minio-data: | ||
|
||
networks: | ||
reaxpro: |
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
Oops, something went wrong.