Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Commit

Permalink
add base-wine-browser, and ie4 and ie55 containers!
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Sep 22, 2015
1 parent 788fd9c commit cc148ff
Show file tree
Hide file tree
Showing 14 changed files with 123 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text
4 changes: 4 additions & 0 deletions app/main.py
Expand Up @@ -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:
Expand Down
36 changes: 36 additions & 0 deletions browsers/base-wine-browser/Dockerfile
@@ -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
19 changes: 19 additions & 0 deletions browsers/ie4/Dockerfile
@@ -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

4 changes: 4 additions & 0 deletions browsers/ie4/flux-apps
@@ -0,0 +1,4 @@
[app] (.*)
[Fullscreen] {yes}
[end]

3 changes: 3 additions & 0 deletions browsers/ie4/ie4wine.tar.gz
Git LFS file not shown
8 changes: 8 additions & 0 deletions browsers/ie4/proxy.reg
@@ -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>"
7 changes: 7 additions & 0 deletions browsers/ie4/run.sh
@@ -0,0 +1,7 @@
#!/bin/bash

export WINEPREFIX="/home/browser/.ie4"

wine regedit proxy.reg

wine 'C:/Program Files/Internet Explorer/iexplore.exe' $URL
19 changes: 19 additions & 0 deletions browsers/ie5/Dockerfile
@@ -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

4 changes: 4 additions & 0 deletions browsers/ie5/flux-apps
@@ -0,0 +1,4 @@
[app] (.*)
[Fullscreen] {yes}
[end]

3 changes: 3 additions & 0 deletions browsers/ie5/ie55wine.tar.gz
Git LFS file not shown
5 changes: 5 additions & 0 deletions browsers/ie5/proxy.reg
@@ -0,0 +1,5 @@
Regedit4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="http://netcapsule_pywb_1:8080"
7 changes: 7 additions & 0 deletions browsers/ie5/run.sh
@@ -0,0 +1,7 @@
#!/bin/bash

export WINEPREFIX="/home/browser/.ie55"

wine regedit proxy.reg

wine 'C:/Program Files/Internet Explorer/iexplore.exe' $URL
3 changes: 3 additions & 0 deletions pull-containers.sh
Expand Up @@ -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.