source: docker/initialize-mlxwinebuild.sh@ 944:ebf5b88d3fd2

python3
Last change on this file since 944:ebf5b88d3fd2 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
RevLine 
[916]1#!/bin/bash
2
3set -e -u
4
5scriptdir=`dirname $0`
6scriptdir=`cd "${scriptdir}" && pwd`
7
[939]8docker build -t mlxwinebuild-py3-base "${scriptdir}/context"
[916]9
10if test -z "${XAUTHORITY:-}"; then
11 XAUTHORITY="${HOME}/.Xauthority"
12fi
13
[939]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
[916]15
16echo "Committing new image..."
17
[939]18docker commit --change='CMD ["bash"]' mlxwinebuildinit mlxwinebuild-py3
[916]19
20echo "Removing container..."
21docker rm mlxwinebuildinit
22
23echo "Done."
Note: See TracBrowser for help on using the repository browser.