-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ISI-MIP/dev
Version 2
- Loading branch information
Showing
68 changed files
with
2,988 additions
and
861 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,13 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
RUN apt-get update -y && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y build-essential cdo nco | ||
|
||
WORKDIR /api | ||
|
||
COPY . . | ||
|
||
RUN pip3 install . | ||
|
||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "isimip_files_api.app:create_app()"] |
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,18 @@ | ||
# set environment variables for `flask run` and `rq worker` for development | ||
# in production, the variables should be set in systemd or docker files | ||
export FLASK_APP=isimip_files_api.app | ||
export FLASK_ENV=development | ||
export FLASK_DEBUG=true | ||
export FLASK_CONFIG=config.toml | ||
export RQ_WORKER_CLASS=isimip_files_api.worker.Worker | ||
|
||
server: | ||
flask run | ||
|
||
worker: | ||
rq worker | ||
|
||
burst: | ||
rq worker --burst | ||
|
||
.PHONY: server worker |
Oops, something went wrong.