Put Docker container in explicitly named directory

This commit is contained in:
Brandon Rhodes 2021-06-24 07:27:28 -04:00
parent d4ee0764c2
commit c17ae5e31d
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ cd "$(dirname $0)"
# Build the Docker image from the instructions in the Dockerfile.
# Name the resulting image "xephem".
docker build -t xephem . 1>&2
docker build -t xephem-ubuntu-14.04 . 1>&2
# Run the "xephem" image, exposing several files from the host system
# that together should let XEphem run and connect to X Windows:
@ -27,8 +27,8 @@ docker build -t xephem . 1>&2
exec docker run -ti \
--net=host \
-e DISPLAY=$DISPLAY \
-v ${PWD}/..:/src \
-v ${PWD}/../..:/src \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ${XAUTHORITY}:/root/.Xauthority \
xephem \
xephem-ubuntu-14.04 \
"$@"