Skip to content

Commit

Permalink
chromium: refactor into base-chromium, child chromium5 and chromium10…
Browse files Browse the repository at this point in the history
… images
  • Loading branch information
ikreymer committed Dec 7, 2015
1 parent 27af14d commit 9f1d762
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 91 deletions.
22 changes: 22 additions & 0 deletions browsers/base-chromium/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM netcapsule/base-browser

RUN apt-get update && apt-get install -y libpango1.0-0 libfreetype6 libnss3-1d libnspr4-0d libasound2 libgconf-2-4 libgtk2.0-0 libnss3-tools jwm zip \
&& rm -rf /var/lib/apt/lists/*

# install old libgcrypt
RUN echo "deb http://ftp.de.debian.org/debian wheezy main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y libgcrypt11

USER browser

WORKDIR /home/browser

COPY jwmrc /home/browser/.jwmrc

COPY run.sh /app/run.sh

RUN sudo chmod a+x /app/run.sh

CMD /app/entry_point.sh /app/run.sh

File renamed without changes.
File renamed without changes.
24 changes: 4 additions & 20 deletions browsers/chromium10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
FROM netcapsule/base-browser
FROM netcapsule/base-chromium

# To get a different version, use "Position Lookup" here: [https://omahaproxy.appspot.com] to find the position code for that version string,
# then look for that postition code here: [https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/].
# If it exists, use [https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/<POSITION_CODE>/chrome-linux.zip].
# See also [http://www.chromium.org/getting-involved/download-chromium].
RUN apt-get update && apt-get install -y libpango1.0-0 libfreetype6 libnss3-1d libnspr4-0d libasound2 libgconf-2-4 libgtk2.0-0 libnss3-tools jwm zip \
&& rm -rf /var/lib/apt/lists/* \
&& wget -q https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/72316/chrome-linux.zip \
&& unzip chrome-linux.zip -d /home/browser
ENV POSITION_CODE 72316

# install old libgcrypt
RUN echo "deb http://ftp.de.debian.org/debian wheezy main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y libgcrypt11
RUN wget -q https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${POSITION_CODE}/chrome-linux.zip;\
unzip chrome-linux.zip -d /home/browser

USER browser

COPY jwmrc /home/browser/.jwmrc

COPY run.sh /app/run.sh

RUN sudo chmod a+x /app/run.sh

WORKDIR /home/browser

CMD /app/entry_point.sh /app/run.sh

24 changes: 4 additions & 20 deletions browsers/chromium5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
FROM netcapsule/base-browser
FROM netcapsule/base-chromium

# To get a different version, use "Position Lookup" here: [https://omahaproxy.appspot.com] to find the position code for that version string,
# then look for that postition code here: [https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/].
# If it exists, use [https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/<POSITION_CODE>/chrome-linux.zip].
# See also [http://www.chromium.org/getting-involved/download-chromium].
RUN apt-get update && apt-get install -y libpango1.0-0 libfreetype6 libnss3-1d libnspr4-0d libasound2 libgconf-2-4 libgtk2.0-0 libnss3-tools jwm zip \
&& rm -rf /var/lib/apt/lists/* \
&& wget -q https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/44202/chrome-linux.zip \
&& unzip chrome-linux.zip -d /home/browser
ENV POSITION_CODE 44202

# install old libgcrypt
RUN echo "deb http://ftp.de.debian.org/debian wheezy main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y libgcrypt11
RUN wget -q https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${POSITION_CODE}/chrome-linux.zip;\
unzip chrome-linux.zip -d /home/browser

USER browser

COPY jwmrc /home/browser/.jwmrc

COPY run.sh /app/run.sh

RUN sudo chmod a+x /app/run.sh

WORKDIR /home/browser

CMD /app/entry_point.sh /app/run.sh

28 changes: 0 additions & 28 deletions browsers/chromium5/jwmrc

This file was deleted.

23 changes: 0 additions & 23 deletions browsers/chromium5/run.sh

This file was deleted.

0 comments on commit 9f1d762

Please sign in to comment.