Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export SRC_PATH="/home/rber/projects/opengrok"
- export DATA_PATH="/home/rber/projects/opengrok"
- export PUBLIC_PORT="8822"
- export CONTAINER="dieterplex/docker-opengrok"
- # remove currently running containers
- echo "+ ID_TO_KILL=\$(docker ps -a -q --filter ancestor=${CONTAINER})"
- ID_TO_KILL=$(docker ps -a -q --filter ancestor=${CONTAINER})
- echo "+ docker ps -a"
- docker ps -a
- echo "+ docker stop ${ID_TO_KILL}"
- docker stop ${ID_TO_KILL}
- echo "+ docker rm -f ${ID_TO_KILL}"
- docker rm -f ${ID_TO_KILL}
- echo "+ docker ps -a"
- docker ps -a
- set -x
- docker run --privileged -d -v ${SRC_PATH}:/opengrok/src -v ${DATA_PATH}:/opengrok/data -p ${PUBLIC_PORT}:8080 ${CONTAINER}
- set +x
- echo "in the webbrowser:"
- echo "http://localhost:${PUBLIC_PORT}/source/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement