phenology / springtime

Spatiotemporal phenology research with interpretable models
https://springtime.readthedocs.io
Apache License 2.0
3 stars 2 forks source link

Install environment inside docker container #163

Closed Peter9192 closed 1 year ago

Peter9192 commented 1 year ago

To make it work more smoothly on CRIB, hopefully also on mac, and perhaps also as a vscode devcontainer. Include Jupyter stack Host image on GHCR.io

Peter9192 commented 1 year ago

To push docker image to GHCR:

https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

  1. Build the docker image locally: docker build --tag springtime .
  2. configure personal access token
  3. create tag docker tag springtime ghcr.io/phenology/springtime:latest
  4. push image docker push ghcr.io/phenology/springtime:latest
Peter9192 commented 1 year ago

To run the image you need to mount your working dir: docker run -v $PWD:/repo --rm springtime springtime tests/recipes/NPN.yaml