Fakultas Ilmu Komputer UI

Commit f6128804 authored by root's avatar root
Browse files

[#140382397] #4 add ssh menu port on provision

parent 82290c5f
......@@ -12,11 +12,17 @@ else
port=$2
fi
if [[ -z "$3" ]]; then
ssh=8022
else
ssh=$2
fi
echo Running Docker container with name $name
if [[ $(docker ps -a -f "name=$name" --format '{{.Names}}') == $name ]]; then
docker start $name
docker exec $name bash /home/kape/provision/start-service.sh
else
docker run --name $name -p $port:8000 -v $(realpath ../):/home/kape zmajdy/kape bash /home/kape/provision/start-service.sh
docker run --name $name -p $port:8000 -p $ssh:8022 -v $(realpath ../):/home/kape zmajdy/kape bash /home/kape/provision/start-service.sh
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment