source: docker/initialize-mlxwinebuild.sh@ 966:c7cb5b3d2c47

python3
Last change on this file since 966:c7cb5b3d2c47 was 939:de728888b85e, checked in by István Váradi <ivaradi@…>, 6 years ago

The Docker/Wine-based build infrastructure works for Python 3 (re #347)

  • Property exe set to *
File size: 704 bytes
Line 
1#!/bin/bash
2
3set -e -u
4
5scriptdir=`dirname $0`
6scriptdir=`cd "${scriptdir}" && pwd`
7
8docker build -t mlxwinebuild-py3-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-py3-base initialize
15
16echo "Committing new image..."
17
18docker commit --change='CMD ["bash"]' mlxwinebuildinit mlxwinebuild-py3
19
20echo "Removing container..."
21docker rm mlxwinebuildinit
22
23echo "Done."
Note: See TracBrowser for help on using the repository browser.