This commit is contained in:
Justin Garrison 2015-03-09 21:34:22 -07:00
commit 038990f7c3
19 changed files with 312 additions and 46 deletions

39
chrome/Dockerfile Normal file
View File

@ -0,0 +1,39 @@
# Base docker image
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
COPY google-talkplugin_current_amd64.deb /src/google-talkplugin_current_amd64.deb
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /src/google-chrome-stable_current_amd64.deb
# Install Chromium
RUN sed -i.bak 's/jessie main/jessie main contrib non-free/g' /etc/apt/sources.list && \
mkdir -p /usr/share/icons/hicolor && \
apt-get update && apt-get install -y \
ca-certificates \
gconf-service \
libappindicator1 \
libasound2 \
libcanberra-gtk-module \
libcurl3 \
libexif-dev \
libgconf-2-4 \
libnspr4 \
libnss3 \
libpango1.0-0 \
libv4l-0 \
libxss1 \
libxtst6 \
wget \
xdg-utils \
--no-install-recommends && \
dpkg -i '/src/google-chrome-stable_current_amd64.deb' && \
apt-get install -y \
pepperflashplugin-nonfree \
--no-install-recommends && \
dpkg -i '/src/google-talkplugin_current_amd64.deb'
COPY local.conf /etc/fonts/local.conf
# Autorun x11vnc
CMD ["/usr/bin/google-chrome-stable", "--no-sandbox", "--user-data-dir=/data"]

29
chrome/local.conf Normal file
View File

@ -0,0 +1,29 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>

17
consul-alerts/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
ADD https://jesss.s3.amazonaws.com/binaries/consul-alerts /usr/local/bin/consul-alerts
ADD https://jesss.s3.amazonaws.com/binaries/consul/0.4.1/consul /usr/local/bin/consul
ADD https://jesss.s3.amazonaws.com/binaries/curl-unix-socket /usr/local/bin/curl-unix-socket
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
--no-install-recommends \
&& mkdir -p /etc/consul.d/ \
&& chmod +x /usr/local/bin/consul \
&& chmod +x /usr/local/bin/curl-unix-socket \
&& chmod +x /usr/local/bin/consul-alerts
ENTRYPOINT [ "/usr/local/bin/consul-alerts", "start" ]

10
iceweasel/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN sed -i.bak 's/jessie main/jessie main contrib/g' /etc/apt/sources.list && \
apt-get update && apt-get install -y \
flashplugin-nonfree \
iceweasel \
--no-install-recommends
ENTRYPOINT [ "iceweasel" ]

View File

@ -11,4 +11,6 @@ RUN apt-get update && apt-get install -y \
WORKDIR /usr/src WORKDIR /usr/src
ENTRYPOINT [ "bash" ] COPY ./download-kernel /usr/local/bin/download-kernel
CMD [ "bash" ]

10
kernel-builder/download-kernel Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Please specify a kernel version."
exit 1
fi
curl -sSL https://www.kernel.org/pub/linux/kernel/v3.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ

25
mailman/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
# run
# docker run -d -p 1234:80 -p 25:25 jess/mailman
#
# curl http://localhost:1234/cgi-bin/mailman/admin
# for admin screen
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
lighttpd \
mailman \
postfix \
supervisor \
--no-install-recommends
# Lighttpd configuration
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 25 80
ENTRYPOINT [ "supervisord" ]

48
mailman/lighttpd.conf Normal file
View File

@ -0,0 +1,48 @@
server.modules = (
"mod_cgi"
# ,"mod_access"
,"mod_alias"
# ,"mod_compress"
# ,"mod_redirect"
# ,"mod_rewrite"
)
server.document-root = "/usr/lib/cgi-bin/mailman/"
server.dir-listing = "disable"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
#index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
#url.access-deny = ( "~", ".inc" )
#static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
#compress.cache-dir = "/var/cache/lighttpd/compress/"
#compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
#include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
alias.url = ( "/images/mailman/" => "/usr/share/images/mailman/",
"/pipermail/" => "/var/lib/mailman/archives/public/",
"/cgi-bin/mailman/" => "/usr/lib/cgi-bin/mailman/" )
cgi.assign = ( "/admin" => "",
"/admindb" => "",
"/confirm" => "",
"/create" => "",
"/edithtml" => "",
"/listinfo" => "",
"/options" => "",
"/private" => "",
"/rmlist" => "",
"/roster" => "",
"/subscribe" => "")

11
mailman/supervisord.conf Normal file
View File

@ -0,0 +1,11 @@
[supervisord]
nodaemon=true
[program:postfix]
command=/etc/init.d/postfix start
[program:lighttpd]
command=/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
[program:mailman]
command=/etc/init.d/mailman start

11
mpsyt/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:latest
MAINTAINER Justin Garrison <justinleegarrison@gmail.com>
RUN apt-get update && apt-get install -y \
mplayer \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN pip install mps-youtube
ENTRYPOINT ["mpsyt"]

11
mpsyt/README Normal file
View File

@ -0,0 +1,11 @@
mps-youtube
--------
Docker container for running [mpsyt](https://github.com/np1/mps-youtube) inside
a docker container.
Run with
```
docker run -v /dev/snd:/dev/snd -it --rm --privileged rothgar/mpsyt
```

View File

@ -2,6 +2,7 @@ FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libgssapi-krb5-2 \
rdesktop \ rdesktop \
--no-install-recommends --no-install-recommends

13
remmina/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM ubuntu:14.10
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \
software-properties-common \
--no-install-recommends && \
apt-add-repository ppa:remmina-ppa-team/remmina-next && \
apt-get update && apt-get install -y \
remmina \
remmina-plugin-rdp \
--no-install-recommends
ENTRYPOINT [ "remmina" ]

15
rust/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rust/rustc/bin
RUN mkdir -p /usr/local/rust \
&& curl -sSL https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz | tar -v -C /usr/local/rust -xz --strip-components 1 \
&& cd /usr/local/rust \
&& ./install.sh

17
spotify-wine/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM debian:jessie
MAINTAINER Jessie Frazelle <jess@linux.com>
# install wine
# and iceweasel since we have to sign in w facebook
# GROSS
RUN apt-get update && apt-get install -y \
wine \
--no-install-recommends && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y \
wine32
COPY ./SpotifySetup.exe /usr/src/SpotifySetup.exe
CMD [ "wine", "/usr/src/SpotifySetup.exe" ]

15
spotify/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM ubuntu:14.04
MAINTAINER Jessie Frazelle <jess@linux.com>
RUN apt-get update && apt-get install -y \
libpangoxft-1.0-0 \
alsa-utils \
software-properties-common \
--no-install-recommends && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 && \
echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list && \
apt-get update && \
apt-get install -y \
spotify-client
ENTRYPOINT [ "/usr/bin/spotify" ]

View File

@ -1,48 +1,12 @@
FROM debian:wheezy FROM ubuntu:14.04
MAINTAINER Jessie Frazelle <jess@linux.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \ software-properties-common \
ca-certificates \ --no-install-recommends && \
cmake \ add-apt-repository ppa:tomahawk/ppa && \
curl \ apt-get update && \
libtag1c2a \ apt-get install -y \
libtag1-dev \ tomahawk
libqt4-dev \
libqt4-sql-sqlite \
libphonon-dev \
phonon-dbg \
libphononexperimental4 \
libboost-dev \
libboost-thread-dev \
zlib1g-dev \
libgnutls-dev \
libz-dev \
libqjson-dev \
libqca2-dev \
libx11-dev \
pkg-config \
libqca2-plugin-ossl \
libidn2-0-dev \
speex \
libsamplerate0-dev \
libfftw3-dev \
libgsasl7-dev \
automoc \
pulseaudio \
alsa-utils \
--no-install-recommends
RUN curl -sSL http://download.kde.org/stable/attica/attica-0.4.1.tar.bz2 | tar -v -C /root -xj && \
mv /root/attica-0.4.1 /root/attica && \
mkdir -p /root/attica/build && cd /root/attica/build && \
cmake .. && \
make && make install
RUN curl -sSL https://github.com/tomahawk-player/tomahawk/archive/0.8.2.tar.gz | tar -v -C /root -xz && \
mv /root/tomahawk-0.8.2 /root/tomahawk/ && \
mkdir -p /root/tomahawk/build && cd /root/tomahawk/build && \
cmake .. && \
make && \
mv /root/tomahawk/tomahawk /usr/bin/
ENTRYPOINT [ "/usr/bin/tomahawk" ] ENTRYPOINT [ "/usr/bin/tomahawk" ]

29
tor-browser/Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
libasound2 \
libdbus-glib-1-2 \
libgtk2.0-0 \
libxrender1 \
libxt6 \
xz-utils \
&& rm -rf /var/lib/apt/lists/*
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& chown -R user:user $HOME
ENV LANG C.UTF-8
ENV TOR_VERSION 4.0.3
RUN curl -sSL "https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz" | tar -v -C /usr/local/bin -xJ --strip-components 1
WORKDIR $HOME
USER user
ENTRYPOINT ["/bin/bash"]
CMD [ "/usr/local/bin/start-tor-browser" ]

View File

@ -12,7 +12,6 @@ RUN apt-get update && apt-get install -y \
ENV HOME /home/user ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \ RUN useradd --create-home --home-dir $HOME user \
&& mkdir -p $HOME/.irssi \
&& chown -R user:user $HOME && chown -R user:user $HOME
ENV LANG C.UTF-8 ENV LANG C.UTF-8