Skip to content

Latest commit

 

History

History

0.3.1_cpu

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

python-weka-wrapper3 Docker (CPU)

Docker

Build local image

  • Build the image from Docker file (from within docker/0.3.1_cpu)

    docker build -t pww3_cpu .
  • Run the container

    docker run -v /local/dir:/container/dir -it pww3_cpu

    /local/dir:/container/dir maps a local disk directory into a directory inside the container

Pre-built images

  • Build

    docker build -t pww3:0.3.1_cpu .
  • Tag

    docker tag \
      pww3:0.3.1_cpu \
      fracpete/pww3:0.3.1_cpu
  • Push

    docker push fracpete/pww3:0.3.1_cpu

Special directories

  • /workspace/wekafiles - the directory that WEKA_HOME is pointing to (packages, props files, etc)

Usage

Basic

For using the image interactively, you can run the following command:

docker run -u $(id -u):$(id -g) \
    -it fracpete/pww3:0.3.1_cpu

NB:

  • Use -v localdir:containerdir to map directories from your host into the container.
  • Use --rm to automatically remove the container when you are exiting it.

With local packages

Instead of having to reinstall your packages each time you start up the container, you can map your local Weka packages into the container as follows:

docker run -u $(id -u):$(id -g) \
    -v $HOME/wekafiles/:/workspace/wekafiles \
    -it fracpete/pww3:0.3.1_cpu

NB: With this approach you can separate various package installations on your host system in different directories.