Permalink
Browse files

add base-wine-browser, and ie4 and ie55 containers!

  • Loading branch information...
1 parent 788fd9c commit cc148ff0acd1870d88020f70b3cd4a4563ad57cf @ikreymer ikreymer committed Sep 22, 2015
View
@@ -0,0 +1 @@
+*.tar.gz filter=lfs diff=lfs merge=lfs -text
View
@@ -106,6 +106,10 @@ def init_container():
tag = 'netcapsule/netscape'
elif browser == 'mosaic':
tag = 'netcapsule/mosaic'
+ elif browser == 'ie4':
+ tag = 'netcapsule/ie4'
+ elif browser == 'ie5':
+ tag = 'netcapsule/ie5'
elif browser == 'firefox':
tag = 'netcapsule/firefox'
else:
@@ -0,0 +1,36 @@
+FROM netcapsule/base-browser
+
+# Adapter from suchja/wine
+ENV WINE_MONO_VERSION 0.0.8
+USER root
+
+# Install some tools required for creating the image
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ curl \
+ unzip
+
+# Install wine and related packages
+RUN dpkg --add-architecture i386 \
+ && apt-get update \
+ && apt-get install -y --no-install-recommends \
+ wine \
+ wine32 \
+ && rm -rf /var/lib/apt/lists/*
+
+# Use the latest version of winetricks
+RUN curl -SL 'http://winetricks.org/winetricks' -o /usr/local/bin/winetricks \
+ && chmod +x /usr/local/bin/winetricks
+
+# Get latest version of mono for wine
+RUN mkdir -p /usr/share/wine/mono \
+ && curl -SL 'http://sourceforge.net/projects/wine/files/Wine%20Mono/$WINE_MONO_VERSION/wine-mono-$WINE_MONO_VERSION.msi/download' -o /usr/share/wine/mono/wine-mono-$WINE_MONO_VERSION.msi \
+ && chmod +x /usr/share/wine/mono/wine-mono-$WINE_MONO_VERSION.msi
+
+# Wine really doesn't like to be run as root, so let's use a non-root user
+USER browser
+ENV HOME /home/browser
+ENV WINEARCH win32
+
+# Use xclient's home dir as working dir
+WORKDIR /home/browser
@@ -0,0 +1,19 @@
+FROM netcapsule/base-wine-browser
+
+USER browser
+WORKDIR /home/browser
+
+COPY ie4wine.tar.gz /home/browser/ie4wine.tar.gz
+
+COPY proxy.reg /home/browser/proxy.reg
+
+RUN tar xvf /home/browser/ie4wine.tar.gz; mv /home/browser/ie4 /home/browser/.ie4
+
+COPY flux-apps /home/browser/.fluxbox/apps
+RUN sudo chown browser:browser -R /home/browser/.fluxbox
+
+COPY run.sh /app/run.sh
+RUN sudo chmod a+x /app/run.sh
+
+CMD /app/entry_point.sh /app/run.sh
+
@@ -0,0 +1,4 @@
+[app] (.*)
+ [Fullscreen] {yes}
+[end]
+
Git LFS file not shown
@@ -0,0 +1,8 @@
+Regedit4
+
+[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
+"MigrateProxy"=dword:00000001
+"ProxyEnable"=dword:00000001
+"ProxyHttp1.1"=dword:00000000
+"ProxyServer"="netcapsule_pywb_1:8080"
+"ProxyOverride"="<local>"
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export WINEPREFIX="/home/browser/.ie4"
+
+wine regedit proxy.reg
+
+wine 'C:/Program Files/Internet Explorer/iexplore.exe' $URL
@@ -0,0 +1,19 @@
+FROM netcapsule/base-wine-browser
+
+USER browser
+WORKDIR /home/browser
+
+COPY ie55wine.tar.gz /home/browser/ie55wine.tar.gz
+
+COPY proxy.reg /home/browser/proxy.reg
+
+RUN tar xvf /home/browser/ie55wine.tar.gz; mv /home/browser/ie55 /home/browser/.ie55
+
+COPY flux-apps /home/browser/.fluxbox/apps
+RUN sudo chown browser:browser -R /home/browser/.fluxbox
+
+COPY run.sh /app/run.sh
+RUN sudo chmod a+x /app/run.sh
+
+CMD /app/entry_point.sh /app/run.sh
+
@@ -0,0 +1,4 @@
+[app] (.*)
+ [Fullscreen] {yes}
+[end]
+
Git LFS file not shown
@@ -0,0 +1,5 @@
+Regedit4
+
+[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
+"ProxyEnable"=dword:00000001
+"ProxyServer"="http://netcapsule_pywb_1:8080"
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export WINEPREFIX="/home/browser/.ie55"
+
+wine regedit proxy.reg
+
+wine 'C:/Program Files/Internet Explorer/iexplore.exe' $URL
View
@@ -11,3 +11,6 @@ docker pull netcapsule/netscape
docker pull netcapsule/firefox
docker pull netcapsule/mosaic
+docker pull netcapsule/base-wine-browser
+docker pull netcapsule/ie4
+docker pull netcapsule/ie55

0 comments on commit cc148ff

Please sign in to comment.