-
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.
Move to Remote BMI & containerized model (#12)
* Use remotebmi containerized model * Add Dockerfile * Add new demo notebook * Update dockerfile * Update README * Correct entrypoint, set ewatercycle minimum version * Update CMIP forcing notebook * Update formatting * Add link to parameter set download * Modify Dockerfile to allow any user to run the container --------- Co-authored-by: sverhoeven <[email protected]>
- Loading branch information
1 parent
d88623e
commit 07adbef
Showing
12 changed files
with
387 additions
and
731 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ghcr.io/ewatercycle/remotebmi-julia:0.1.0 | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/eWaterCycle/ewatercycle-wflowjl" | ||
|
||
# Install Wflow | ||
RUN julia -e 'using Pkg; Pkg.add(PackageSpec(name="Wflow", version="0.8.1"))' | ||
|
||
RUN echo "using Wflow" > run.jl | ||
RUN echo "import RemoteBMI.Server: run_bmi_server" >> run.jl | ||
RUN echo "port = parse(Int, get(ENV, \"BMI_PORT\", \"50051\"))" >> run.jl | ||
RUN echo "run_bmi_server(Wflow.Model, \"0.0.0.0\", port)" >> run.jl | ||
|
||
# chmod central depot path so all users can access it | ||
RUN chmod -R 777 ${JULIA_DEPOT_PATH} | ||
|
||
# Expose port and start server | ||
EXPOSE 50051 | ||
CMD ["julia", "run.jl"] |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
"""eWaterCycle plugin for Wflow.jl.""" | ||
__version__ = "0.0.1" | ||
|
||
__version__ = "0.2.0" |
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,4 +1,5 @@ | ||
"""wflow diagnostic.""" | ||
|
||
import logging | ||
from pathlib import Path | ||
|
||
|
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,4 +1,5 @@ | ||
"""Forcing related functionality for wflow.""" | ||
|
||
from datetime import datetime | ||
from pathlib import Path | ||
|
||
|
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,4 +1,5 @@ | ||
"""Makkink formula for potential evaporation, implemented for Iris.""" | ||
|
||
import logging | ||
from pathlib import Path | ||
|
||
|
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 was deleted.
Oops, something went wrong.