Browse Source

Fixed resize issue.

Steve Thielemann 7 years ago
parent
commit
b71ae96c22
3 changed files with 12 additions and 2 deletions
  1. 7 0
      NOTES.txt
  2. 2 1
      balsamiq3up.sh
  3. 3 1
      docker-compose.yml

+ 7 - 0
NOTES.txt

@@ -3,3 +3,10 @@ http://alesnosek.com/blog/2015/07/04/running-wine-within-docker/
 
 https://askubuntu.com/questions/16225/how-can-i-accept-the-microsoft-eula-agreement-for-ttf-mscorefonts-installer
 
+X Error of failed request: BadValue (integer parameter out of range for operation) 
+Major opcode of failed request: 130 (MIT-SHM) 
+Minor opcode of failed request: 3 (X_ShmPutImage)
+
+This seems to be fixed with  --ipc=host
+
+https://github.com/suchja/wine/issues/8

+ 2 - 1
balsamiq3up.sh

@@ -2,6 +2,7 @@
 
 # NOTE:  the /home/steve/.wine (or should it be) /home/stevet/.wine must match your home directory.
 # NOTE:  I tried $(pwd)/passwd in case the /bin/bash was causing issues with alpine. 
+# use $(id -u -n) for the current username
 
-docker run --rm --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 --volume $(pwd)/wine:/home/steve/.wine --volume /etc/passwd:/etc/passwd:ro -u $(id -u):$(id -g) wine "C:\\bal3\\Balsamiq Mockups 3.exe"
+docker run --rm --ipc=host --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 --volume $(pwd)/wine:/home/$(id -u -n)/.wine --volume /etc/passwd:/etc/passwd:ro -u $(id -u):$(id -g) wine "C:\\bal3\\Balsamiq Mockups 3.exe"
 

+ 3 - 1
docker-compose.yml

@@ -7,10 +7,12 @@ services:
     build: image
     volumes:
       - /tmp/.X11-unix/X0:/tmp/.X11-unix/X0
-      - ./wine:/home/steve/.wine
+      - ./wine:/home/stevet/.wine
       - /etc/passwd:/etc/passwd:ro
     user: 1000:1000
     command: ["c:\\bal3\\Balsamiq Mockups 3.exe"]
+    ipc: host
+
     # ["c:\\windows\\system32\\notepad.exe"]