Docker/Podman image to install and run a containerised HEXTOR on Fedora.
- Improve setup for better custom EBM configurations
- Install Docker desktop
- Ensure Docker desktop is running
- Download published image:
docker pull woodwardsh/hextor:latest
- Run container:
docker run -it --rm --volume=${PWD}/shared:/home/app/hextor/shared woodwardsh/hextor:latest
# Options:
# -it interactive && TTY (starts shell inside container)
# --rm delete container on exit
# --volume mount local directory inside container
- Follow instructions in HEXTOR repo README from #3 onwards to configure and run the model. Note that a directory named
shared
has been mounted in the example above to allow copying over of custom files (e.g. namelists, lookup tables, etc) into the container.
- Replace
docker
withpodman
, and note additional options to fix permissions on mounted volumes (see podman run):
podman run -it --rm -v ${PWD}/shared:/home/app/hextor/shared --security-opt label=disable woodwardsh/hextor:latest
- Clone repo & navigate inside:
git clone [email protected]:hannahwoodward/docker-hextor.git && cd docker-hextor
- Build image from Dockerfile (~15 min):
docker build -t hextor .
- Or, if debugging:
docker build -t hextor . --progress=plain --no-cache
- Run locally built container:
docker run -it --rm -v ${PWD}/shared:/home/app/hextor/shared hextor
# Options:
# -it interactive && TTY (starts shell inside container)
# --rm delete container on exit
# -v mount local directory inside container
- Build with similar command, replacing
docker
withpodman
:
podman build -t hextor .
- Run, with additional options to fix permissions on mounted volumes (see podman run):
podman run -it --rm -v ${PWD}/shared:/home/app/shared --security-opt label=disable hextor
docker login && docker tag hextor woodwardsh/hextor && docker push woodwardsh/hextor