init
This commit is contained in:
commit
83e14cef6e
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
data/
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
data/
|
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
FROM ubuntu:bionic
|
||||||
|
|
||||||
|
# To avoid problems with Dialog and curses wizards
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN dpkg --add-architecture i386 && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y gnupg curl && \
|
||||||
|
curl -o /tmp/winehq.key -fsSL https://dl.winehq.org/wine-builds/winehq.key && \
|
||||||
|
apt-key add /tmp/winehq.key && \
|
||||||
|
echo "deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main" | tee /etc/apt/sources.list.d/winehq.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y --install-recommends winehq-staging && \
|
||||||
|
apt-get install -y winbind
|
||||||
|
|
||||||
|
# Set locale to: en_US.UTF-8
|
||||||
|
RUN apt-get -y install locales && \
|
||||||
|
sed -i.orig '/^# en_US.UTF-8.*/s/^#.//g' /etc/locale.gen && \
|
||||||
|
locale-gen && \
|
||||||
|
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
|
RUN apt-get -y install libvulkan1 libvulkan1:i386 vulkan-utils
|
||||||
|
|
||||||
|
COPY ./launch /launch
|
||||||
|
ENTRYPOINT [ "/bin/bash", "/launch" ]
|
||||||
|
|
||||||
|
LABEL maintainer="Andrey Arapov <andrey.arapov@nixaid.com>"
|
13
LICENSE
Normal file
13
LICENSE
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Copyright (c) 2018, Andrey Arapov
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
0
data/.keep
Normal file
0
data/.keep
Normal file
48
docker-compose.yml
Normal file
48
docker-compose.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
wine:
|
||||||
|
# tty: true
|
||||||
|
# stdin_open: true
|
||||||
|
hostname: wine
|
||||||
|
network_mode: bridge
|
||||||
|
# image: andrey01/wine
|
||||||
|
build: .
|
||||||
|
shm_size: 4G
|
||||||
|
environment:
|
||||||
|
- DISPLAY=unix$DISPLAY
|
||||||
|
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
||||||
|
#- DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
|
||||||
|
# - STEAM_RUNTIME=1
|
||||||
|
devices:
|
||||||
|
# Common:
|
||||||
|
- /dev/dri
|
||||||
|
# - /dev/snd
|
||||||
|
# NVIDIA:
|
||||||
|
- /dev/nvidia0
|
||||||
|
- /dev/nvidiactl
|
||||||
|
- /dev/nvidia-uvm
|
||||||
|
- /dev/nvidia-uvm-tools
|
||||||
|
# NVIDIA driver >= 361:
|
||||||
|
- /dev/nvidia-modeset
|
||||||
|
# AMD/ATI Radeon:
|
||||||
|
# - /dev/kfd
|
||||||
|
volumes:
|
||||||
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/machine-id:/etc/machine-id:ro
|
||||||
|
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
||||||
|
# - $XDG_RUNTIME_DIR/bus:/run/user/1000/bus
|
||||||
|
- ./data:/home/user
|
||||||
|
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
|
||||||
|
# Location to your NVIDIA drivers:
|
||||||
|
- /usr/lib/i386-linux-gnu:/hostlibs/32:ro
|
||||||
|
- /usr/lib/x86_64-linux-gnu:/hostlibs/64:ro
|
||||||
|
# Needed for Vulkan ICD Discovery
|
||||||
|
- /usr/share/vulkan/icd.d:/usr/share/vulkan/icd.d:ro
|
||||||
|
# security_opt:
|
||||||
|
# - apparmor=unconfined
|
||||||
|
cap_add:
|
||||||
|
- SYS_PTRACE
|
||||||
|
# - ALL
|
||||||
|
# privileged: true
|
13
launch
Normal file
13
launch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Make errors visible upon `docker logs -f steam` command
|
||||||
|
exec 2>&1
|
||||||
|
|
||||||
|
id user >/dev/null 2>&1
|
||||||
|
[ $? -eq 0 ] || useradd -s /bin/bash -d /home/user -u ${USER_ID:-1000} user
|
||||||
|
|
||||||
|
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/hostlibs/32:/hostlibs/64:
|
||||||
|
export LD_LIBRARY_PATH" | tee /home/user/.bash_profile
|
||||||
|
|
||||||
|
#su -l user -c "HOME=/home/user LD_LIBRARY_PATH=${LD_LIBRARY_PATH} bash $@"
|
||||||
|
su -l user
|
Loading…
Reference in New Issue
Block a user