source: docker/initialize-mlxwinebuild.sh@ 953:ad2ac5a19fc2

version_0.39_maint
Last change on this file since 953:ad2ac5a19fc2 was 916:4f738ffc3596, checked in by István Váradi <ivaradi@…>, 6 years ago

Support for building for Windows using Wine

  • Property exe set to *
File size: 692 bytes
RevLine 
[916]1#!/bin/bash
2
3set -e -u
4
5scriptdir=`dirname $0`
6scriptdir=`cd "${scriptdir}" && pwd`
7
8docker build -t mlxwinebuild-base "${scriptdir}/context"
9
10if test -z "${XAUTHORITY:-}"; then
11 XAUTHORITY="${HOME}/.Xauthority"
12fi
13
14docker run -it --name mlxwinebuildinit -v /tmp/.X11-unix:/tmp/.X11-unix -v "${XAUTHORITY}":/root/.Xauthority -v /usr/lib/x86_64-linux-gnu/vdpau:/usr/lib/x86_64-linux-gnu/vdpau --device /dev/nvidiactl --device /dev/nvidia0 --security-opt=apparmor:unconfined --env DISPLAY mlxwinebuild-base initialize
15
16echo "Committing new image..."
17
18docker commit --change='CMD ["bash"]' mlxwinebuildinit mlxwinebuild
19
20echo "Removing container..."
21docker rm mlxwinebuildinit
22
23echo "Done."
Note: See TracBrowser for help on using the repository browser.