-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Dockerfile and host image publically #109
Comments
What would you want the Docker to contain? The main entry point is the wflow_cli app, for which a tarball can be downloaded from https://download.deltares.nl/en/download/wflow/. Is that enough? Or if you need a Julia REPL, I guess we should take the julia docker, and use PackageCompiler.jl to bake Wflow.jl into the system image for fast startup. |
I don't need the REPL, I would just like to start the model from the commandline. So that's the cli app I guess? PackageCompiler.jl could be nice, but not a hard requirement I'd say. |
Ok yes in most cases the cli app would be sufficient, and easiest. Not sure what the best practices are for throwing a generic linux tarball into a Docker container, but that's all that needs to happen. |
Manual tryout. It now runs the test toml found in the documentation from /data. You can mount your own data and the cmd takes the location of the toml file:
Now available for public testing: ❯ docker run deltares/wflow:julia
┌ Info: Run information
│ model_type = "sbm"
│ starttime = CFTime.DateTimeStandard(2000-01-01T00:00:00)
│ Δt = 86400 seconds
└ endtime = CFTime.DateTimeStandard(2000-01-10T00:00:00)
Progress: 0%| | ETA: N/A
Progress: 10%|████▏ | ETA: 0:00:14
Progress: 20%|████████▎ | ETA: 0:00:07
Progress: 30%|████████████▎ | ETA: 0:00:05
Progress: 40%|████████████████▍ | ETA: 0:00:04
Progress: 50%|████████████████████▌ | ETA: 0:00:03
Progress: 60%|████████████████████████▋ | ETA: 0:00:02
Progress: 70%|████████████████████████████▊ | ETA: 0:00:01
Progress: 80%|████████████████████████████████▊ | ETA: 0:00:01
Progress: 90%|████████████████████████████████████▉ | ETA: 0:00:00
Progress: 100%|█████████████████████████████████████████| Time: 0:00:04
Progress: 100%|█████████████████████████████████████████| Time: 0:00:04 |
Nice! @Pieter9011 could you test this? |
Suggest to use |
You can pass the location of the toml file on the command line. You'd still have to mount a data directory with said toml and data next it, correctly referenced. So if you've got a localdata directory with data and a
|
So I've updated the Dockerfile based on the code As soon as the Dockerfile is merged into In the future we might move the cli code here and automate it further. |
Thanks again for picking this up @evetion! It would also be really nice if previous versions of wflow remain accessible through their version as a tag (so |
Sure, but Teamcity looks to the git repo for tags, and for https://gitlab.com/deltares/wflow/wflow_cli/-/tags, there are none. I propose to merge the wflow_cli repo here, so we can make use of the releases (and thus tags) made here. |
Ah right, that makes sense! We are indeed planning to merge the wflow_cli repo to here, so lets do that first! |
I'm happy to update TC afterwards 👍🏻 |
That would be great! I have added the wflow_cli code to this branch https://github.com/Deltares/Wflow.jl/tree/merge_cli. Is there anything else that needs to be added? I see that in Ribasim.jl you have a .teamcity folder, I assume we need something like this as well? |
Probably best to discuss in #274 or a separate PR. I think it's worth it to copy as much as possibly, e.g. also the Regarding the .teamcity folder, syncing TeamCity settings to the repo can be enabled from the TeamCity side, so no need to do that in your branch. |
Maybe as a julia tag on the current Wflow image?
The text was updated successfully, but these errors were encountered: