Skip to content

Build caffeprep Docker image

Amy Kendig edited this page Jul 25, 2019 · 1 revision
# set up directories for container
$ mkdir caffeprep
$ cd caffeprep
$ mkdir src

# write Dockerfile (in Code)
$ vi Dockerfile
# paste caffeprep Dockerfile contents

# copy script files into directory
$ cd ~/group3/plantvillage_deeplearning_paper_dataset
$ cp create_data_distribution.py ~/caffeprep/src

# edit script files (in Code)
$ cd ~/caffeprep/src
$ vi create_data_distribution.py
# edit the volume path (relative to app): /input_images/plantvillage_deeplearning_paper_dataset/raw

# create directions for cloning github data (in Code)
$ vi get_test_data.sh
# paste the following:
#!/usr/bin/env bash
cd ../input_images
git clone https://github.com/salathegroup/plantvillage_deeplearning_paper_dataset

# build Docker image
$ cd ~/caffeprep
$ docker build -t INSERT-YOUR-DOCKER-USERNAME/caffeprep .