GithubHelp home page GithubHelp logo

docker-pcmgeneric's Introduction

PCM Generic Docker Image

Docker/Podman image to install and run a containerised PCM Generic (formerly LMD) on Fedora.

Useful links

Installation & running via published image

docker pull woodwardsh/pcmgeneric:latest
  • Run container, noting the mounting of local dir ./runs to container /home/app/runs for shared storage of model output:
docker run -it --rm --volume=${PWD}:/home/app/runs woodwardsh/pcmgeneric:latest

# Options:
# -it       interactive && TTY (starts shell inside container)
# --rm      delete container on exit
# --volume  mount local directory inside container
# -w PATH   sets working directory inside container

Podman

  • Replace docker with podman, and note additional options to fix permissions on mounted volumes (see podman run):
podman run -it --rm -v ${PWD}/runs:/home/app/runs --security-opt label=disable woodwardsh/pcmgeneric:latest

Installation & running via locally built image

  • Clone repo & navigate inside:
git clone [email protected]:hannahwoodward/docker-pcmgeneric.git && cd docker-pcmgeneric
  • Build image from Dockerfile (~15 min):
docker build -t pcmgeneric .
  • Or, if debugging:
docker build -t pcmgeneric . --progress=plain --no-cache
  • Run locally built container:
docker run -it --rm -v ${PWD}/runs:/home/app/runs pcmgeneric

# Options:
# -it       interactive && TTY (starts shell inside container)
# --rm      delete container on exit
# -v        mount local directory inside container
# -w PATH   sets working directory inside container

Podman

  • Build with similar command, replacing docker with podman:
podman build -t pcmgeneric .
  • Run, with additional options to fix permissions on mounted volumes (see podman run):
podman run -it --rm -v ${PWD}/runs:/home/app/runs --security-opt label=disable pcmgeneric

Testing

  • Start container
  • Run sh test-earth-aqua.sh (output written to ./runs/bench_earthslab_64x48x20_b38x36)
  • Run sh test-mars.sh (uses SOCRATES; output written to ./runs/bench_earlymars_32x32x15_b32x36)

Publishing image

docker login && docker tag pcmgeneric woodwardsh/pcmgeneric && docker push woodwardsh/pcmgeneric

docker-pcmgeneric's People

Contributors

hannahwoodward avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.