Added docker and first exercise

This commit is contained in:
Nikolai
2018-04-16 14:43:10 +02:00
committed by Jakob Krause
parent 4120cc7468
commit d5816ecf69
7 changed files with 618 additions and 2 deletions

21
docker_start.sh Normal file
View File

@@ -0,0 +1,21 @@
#! /usr/bin/env bash
PORT="8888"
CIDFILE=".docker_cid"
username=$(whoami)
if [ -e $CIDFILE ]; then
CID=$(cat $CIDFILE)
CMD="docker start $CID"
$CMD
else
CMD="docker run \
--cidfile=$CIDFILE \
-p $PORT:$PORT \
-v `pwd`:/home/$username/image_processing \
-d \
--name image_processing_ss16_container \
image_processing_ss16"
echo "$CMD"
$CMD
fi