Browse Source

Updated to use i386/alpine, and has proper fonts.

Steve Thielemann 7 years ago
parent
commit
445888f743
5 changed files with 35 additions and 8 deletions
  1. 7 0
      balsamiq3up.sh
  2. 4 2
      docker-compose.yml
  3. 6 6
      image/Dockerfile
  4. 9 0
      image/Dockerfile386
  5. 9 0
      image/DockerfileAlpinei386

+ 7 - 0
balsamiq3up.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# 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. 
+
+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"
+

+ 4 - 2
docker-compose.yml

@@ -1,15 +1,17 @@
 version: "2"
 
+# NOTE:  map wine to /home/CORRECT_VALUE/.wine 
+
 services:
   wine:
     build: image
     volumes:
       - /tmp/.X11-unix/X0:/tmp/.X11-unix/X0
-      - ./wine:/home/stevet/.wine
+      - ./wine:/home/steve/.wine
       - /etc/passwd:/etc/passwd:ro
     user: 1000:1000
     command: ["c:\\bal3\\Balsamiq Mockups 3.exe"]
     # ["c:\\windows\\system32\\notepad.exe"]
 
     
-    
+    

+ 6 - 6
image/Dockerfile

@@ -1,9 +1,9 @@
-FROM i386/ubuntu:latest
-RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \
-&& apt-get update \
-&& apt-get install --assume-yes wine
-ENV DISPLAY :0
-ENTRYPOINT ["wine"]
+FROM i386/alpine:latest
 
+RUN apk --no-cache add wine freetype msttcorefonts-installer fontconfig \
+&& update-ms-fonts \
+&& fc-cache -f
 
+ENV DISPLAY :0
+ENTRYPOINT ["wine"]
 

+ 9 - 0
image/Dockerfile386

@@ -0,0 +1,9 @@
+FROM i386/ubuntu:latest
+RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \
+&& apt-get update \
+&& apt-get install --assume-yes wine
+ENV DISPLAY :0
+ENTRYPOINT ["wine"]
+
+
+

+ 9 - 0
image/DockerfileAlpinei386

@@ -0,0 +1,9 @@
+FROM i386/alpine:latest
+
+RUN apk --no-cache add wine freetype msttcorefonts-installer fontconfig \
+&& update-ms-fonts \
+&& fc-cache -f
+
+ENV DISPLAY :0
+ENTRYPOINT ["wine"]
+