-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added X11 firefox-esr with icedtea plugin
- Loading branch information
Showing
4 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.cache/ | ||
.mozilla/ | ||
Desktop/ | ||
.bash_history | ||
.java/ | ||
.ssh/ | ||
Downloads/ | ||
.config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# VERSION 0.1 | ||
# DOCKER-VERSION 17.05.0-ce | ||
# AUTHOR: Paolo Cozzi <[email protected]> | ||
# DESCRIPTION: A openjdk-7 image with firefox installed | ||
# TO_BUILD: docker build --rm -t ptp/firefox-jdk . | ||
# TO_VOLUME: docker create -v $PWD:/home/firefox --name firefox-jdk_volume ptp/firefox-jdk /bin/true | ||
# TO_RUN: docker run -ti -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --volumes-from firefox-jdk_volume --name firefox-jdk ptp/firefox-jdk | ||
# TO_TAG: docker tag ptp/firefox-jdk:latest ptp/firefox-jdk:0.1 | ||
# | ||
|
||
FROM openjdk:7-jdk | ||
|
||
MAINTAINER Paolo Cozzi <[email protected]> | ||
|
||
# install firefox, then clean packages | ||
RUN apt-get update && apt-get install -y \ | ||
firefox-esr=45.9.0esr-1~deb8u1 \ | ||
icedtea-7-plugin && \ | ||
apt-get clean && \ | ||
apt-get autoclean && \ | ||
rm -rf /tmp/* /var/tmp/* | ||
|
||
# Add a new user | ||
RUN useradd -m firefox | ||
|
||
# Setting useful environment variables | ||
WORKDIR /home/firefox/ | ||
|
||
# Set home directory as VOLUME | ||
VOLUME /home/firefox | ||
|
||
# Setting the user | ||
USER firefox | ||
|
||
# default command to reattach istance | ||
CMD ["/usr/bin/firefox", "--no-remote"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
Firefox-esr image with icedtea-7 plugin | ||
======================================= | ||
|
||
This image enable icedtea-7 java plugin on Firefox-esr (on a host using X11). | ||
First create a volume in order to store browser configuration, caches, etc. | ||
|
||
``` | ||
$ docker create -v $PWD:/home/firefox --name firefox-jdk_volume ptp/firefox-jdk /bin/true | ||
``` | ||
|
||
Then start firefox image sharing volume and host `$DISPLAY`: | ||
|
||
``` | ||
$ docker run -ti -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --volumes-from firefox-jdk_volume --name firefox-jdk ptp/firefox-jdk | ||
``` | ||
|
||
Enjoy! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters