Skip to content

Latest commit

 

History

History

latest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

spy-utilities

Docker images for the spy-utilities Python library. Uses the happy-spy-docker docker images as basis.

Docker

Quick start

  • 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 local image

  • 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

Pre-built images

  • 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
  • Run

    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

Permissions

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 ...