Skip to content

Commit

Permalink
Added X11 firefox-esr with icedtea plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bunop committed Jun 22, 2017
1 parent 91798fd commit f85d883
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
8 changes: 8 additions & 0 deletions X11/firefox-jdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.cache/
.mozilla/
Desktop/
.bash_history
.java/
.ssh/
Downloads/
.config/
37 changes: 37 additions & 0 deletions X11/firefox-jdk/Dockerfile
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"]
18 changes: 18 additions & 0 deletions X11/firefox-jdk/README.md
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!
8 changes: 5 additions & 3 deletions compose/gitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ ports:
- "522:22"
```
More information on GitLab on docker could be found [here][gitlab-docker1] and
[here][gitlab-docker2].
[gitlab-ce]: https://docs.gitlab.com/ce/README.html
[gitlab-usb]: https://blog.sixeyed.com/run-gitlab-on-a-usb-stick-with-docker/
[gitlab-tags]: https://hub.docker.com/r/gitlab/gitlab-ce/tags/
https://hub.docker.com/r/gitlab/gitlab-ce/
https://docs.gitlab.com/omnibus/docker/README.html
[gitlab-docker1]: https://hub.docker.com/r/gitlab/gitlab-ce/
[gitlab-docker2]: https://docs.gitlab.com/omnibus/docker/README.html

0 comments on commit f85d883

Please sign in to comment.