2014-02-08 13:34:11 -05:00
|
|
|
# VERSION: 0.7
|
|
|
|
# DESCRIPTION: Create iceweasel container with its dependencies
|
|
|
|
# AUTHOR: Daniel Mizyrycki <daniel@dotcloud.com>
|
|
|
|
# COMMENTS:
|
|
|
|
# This file describes how to build a Iceweasel container with all
|
|
|
|
# dependencies installed. It uses native X11 unix socket and alsa
|
|
|
|
# sound devices. Tested on Debian 7.2
|
|
|
|
# USAGE:
|
|
|
|
# # Download Iceweasel Dockerfile
|
|
|
|
# wget http://raw.github.com/dotcloud/docker/master/contrib/desktop-integration/iceweasel/Dockerfile
|
|
|
|
#
|
|
|
|
# # Build iceweasel image
|
2014-03-13 13:46:02 -04:00
|
|
|
# docker build -t iceweasel .
|
2014-02-08 13:34:11 -05:00
|
|
|
#
|
|
|
|
# # Run stateful data-on-host iceweasel. For ephemeral, remove -v /data/iceweasel:/data
|
|
|
|
# docker run -v /data/iceweasel:/data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
2014-03-13 13:46:02 -04:00
|
|
|
# -v /dev/snd:/dev/snd --lxc-conf='lxc.cgroup.devices.allow = c 116:* rwm' \
|
2014-02-08 13:34:11 -05:00
|
|
|
# -e DISPLAY=unix$DISPLAY iceweasel
|
|
|
|
#
|
|
|
|
# # To run stateful dockerized data containers
|
2014-03-13 13:46:02 -04:00
|
|
|
# docker run --volumes-from iceweasel-data -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -v /dev/snd:/dev/snd --lxc-conf='lxc.cgroup.devices.allow = c 116:* rwm' \
|
2014-02-08 13:34:11 -05:00
|
|
|
# -e DISPLAY=unix$DISPLAY iceweasel
|
|
|
|
|
|
|
|
docker-version 0.6.5
|
|
|
|
|
|
|
|
# Base docker image
|
|
|
|
FROM debian:wheezy
|
|
|
|
MAINTAINER Daniel Mizyrycki <daniel@docker.com>
|
|
|
|
|
|
|
|
# Install Iceweasel and "sudo"
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq iceweasel sudo
|
|
|
|
|
|
|
|
# create sysadmin account
|
|
|
|
RUN useradd -m -d /data -p saIVpsc0EVTwA sysadmin
|
|
|
|
RUN sed -Ei 's/sudo:x:27:/sudo:x:27:sysadmin/' /etc/group
|
|
|
|
RUN sed -Ei 's/(\%sudo\s+ALL=\(ALL\:ALL\) )ALL/\1 NOPASSWD:ALL/' /etc/sudoers
|
|
|
|
|
|
|
|
# Autorun iceweasel. -no-remote is necessary to create a new container, as
|
|
|
|
# iceweasel appears to communicate with itself through X11.
|
|
|
|
CMD ["/usr/bin/sudo", "-u", "sysadmin", "-H", "-E", "/usr/bin/iceweasel", "-no-remote"]
|