X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=scripts%2Fdocker%2Fexec.bash;h=faabff467b259a617162922154a933385ae6f879;hb=5c44bcd4519e992219908316d453dac7dfef2d47;hp=9874c9a9f49fbe0b4db2d0d06e790f557eeb89b6;hpb=846958003cd3529e6322146d289265859db0ba8e;p=blank.git diff --git a/scripts/docker/exec.bash b/scripts/docker/exec.bash index 9874c9a..faabff4 100755 --- a/scripts/docker/exec.bash +++ b/scripts/docker/exec.bash @@ -24,5 +24,10 @@ if [ -e "${image_path}/env" ]; then local_conf="$local_conf --env-file ${image_path}/env" fi +# copy XDG_RUNTIME_DIR if set +if [ "$XDG_RUNTIME_DIR" != "" ]; then + local_conf="$local_conf -e XDG_RUNTIME_DIR='$XDG_RUNTIME_DIR'" +fi + docker build -t "${image_name}" --pull=true "${image_path}" -docker run -v "$PWD":/repo ${local_conf} "${image_name}" /bin/bash -c "${build_cmd}" +docker run -v "$PWD":/repo ${local_conf} "${image_name}" xvfb-run --server-args="-screen 0 1024x768x24" bash -c "env ; glewinfo | head ; ${build_cmd}"