Skip to content

Instantly share code, notes, and snippets.

@dhgrs
Created July 21, 2018 12:54
Show Gist options
  • Save dhgrs/932154ef165d67cb5e552a80fa02b1cd to your computer and use it in GitHub Desktop.
Save dhgrs/932154ef165d67cb5e552a80fa02b1cd to your computer and use it in GitHub Desktop.
chainerui script
function chainerui() {
docker run \
-v $(readlink -f $1):$(readlink -f $1) \
-p ${2:-5000}:5000 \
-d \
--rm \
--name ${2:-5000} \
-it chainer/chainerui:v0.4.0 \
bash -c \
"chainerui project create -d $(readlink -f $1);
chainerui server --host 0.0.0.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment