Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 1.8 KB

File metadata and controls

81 lines (54 loc) · 1.8 KB

image-dataset-converter 0.0.4

Build

docker build -t image-dataset-converter:0.0.4 .

Local

Deploy

  • Log into https://aml-repo.cms.waikato.ac.nz with user that has write access

    docker login -u USER public-push.aml-repo.cms.waikato.ac.nz:443
  • Execute commands

    docker tag \
        image-dataset-converter:0.0.4 \
        public-push.aml-repo.cms.waikato.ac.nz:443/tools/image-dataset-converter:0.0.4
        
    docker push public-push.aml-repo.cms.waikato.ac.nz:443/tools/image-dataset-converter:0.0.4

Use

  • Log into https://aml-repo.cms.waikato.ac.nz with public/public credentials for read access

    docker login -u public --password public public.aml-repo.cms.waikato.ac.nz:443
  • Use image

    docker run --rm -u $(id -u):$(id -g) \
        -v /local/dir:/workspace \
        -it public.aml-repo.cms.waikato.ac.nz:443/tools/image-dataset-converter:0.0.4

NB: Replace /local/dir with a local directory that you want to map inside the container. For the current directory, simply use pwd.

Docker hub

Deploy

  • Log into docker hub as user waikatodatamining:

    docker login -u waikatodatamining
  • Execute command:

    docker tag \
        image-dataset-converter:0.0.4 \
        waikatodatamining/image-dataset-converter:0.0.4
    
    docker push waikatodatamining/image-dataset-converter:0.0.4

Use

docker run --rm -u $(id -u):$(id -g) \
    -v /local/dir:/workspace \
    -it waikatodatamining/image-dataset-converter:0.0.4

NB:

  • Replace /local/dir with a local directory that you want to map inside the container.
  • For the current directory, simply use pwd.
  • You need to start the docker container with the --net=host option if you are using the host's Redis server.