Docker images for the spy-utilities Python library. Uses the happy-spy-docker docker images as basis.
-
Log into registry with the appropriate credentials:
docker login -u public -p public public.aml-repo.cms.waikato.ac.nz:443
-
Pull and run image (adjust volume mappings
-v
):docker run \ -v /local/dir:/container/dir \ -it public.aml-repo.cms.waikato.ac.nz:443/wairas/happy-spy-utilities:latest
-
If need be, remove all containers and images from your system:
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker system prune -a
-
Build the image from Docker file (from within
/path_to/latest
)docker build -t spyutils .
-
Run the container
docker run \ -v /local/dir:/container/dir -it spyutils
/local/dir:/container/dir
maps a local disk directory into a directory inside the container
-
Build
docker build -t happy-spy-utilities:latest .
-
Tag
docker tag \ happy-spy-utilities:latest \ public-push.aml-repo.cms.waikato.ac.nz:443/wairas/happy-spy-utilities:latest
-
Push
docker push public-push.aml-repo.cms.waikato.ac.nz:443/wairas/happy-spy-utilities:latest
If error "no basic auth credentials" occurs, then run (enter username/password when prompted):
docker login public-push.aml-repo.cms.waikato.ac.nz:443
-
Pull
If image is available in aml-repo and you just want to use it, you can pull using following command and then run.
docker pull public.aml-repo.cms.waikato.ac.nz:443/wairas/happy-spy-utilities:latest
If error "no basic auth credentials" occurs, then run (enter username/password when prompted):
docker login public.aml-repo.cms.waikato.ac.nz:443
Then tag by running:
docker tag \ public.aml-repo.cms.waikato.ac.nz:443/wairas/happy-spy-utilities:latest \ happy-spy-utilities:latest
-
docker run \ -v /local/dir:/container/dir -it happy-spy-utilities:latest
/local/dir:/container/dir
maps a local disk directory into a directory inside the container
When running the docker container as regular use, you will want to set the correct user and group on the files generated by the container (aka the user:group launching the container):
docker run -u $(id -u):$(id -g) -e USER=$USER ...