-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
83 lines (68 loc) · 3.08 KB
/
Dockerfile
File metadata and controls
83 lines (68 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM selenium/standalone-firefox-debug:3.5.3
USER root
# add utilities
RUN apt-get update \
&& apt-get -y install aptitude python-software-properties software-properties-common \
&& add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner" \
&& apt-add-repository multiverse \
&& apt-get -y install curl git zsh vim tmux net-tools iputils-ping mtr
# add pulseaudio
RUN apt-get -y install \
alsa-utils \
libasound2 \
libasound2-plugins \
pulseaudio \
pulseaudio-module-zeroconf \
pulseaudio-utils \
--no-install-recommends
COPY ./etc/pulse /etc/pulse
RUN usermod -aG audio,pulse,pulse-access seluser
# add pulseaudio gui
RUN apt-get -y install pavucontrol
# add flash
RUN apt-get update \
&& apt-get -y install adobe-flashplugin
# add Codecs/Fonts/Extras
RUN apt-get -y install gstreamer1.0-fluendo-mp3 gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly totem-plugins-extra gstreamer-tools \
ubuntu-restricted-extras
# setup zsh
COPY ./home/seluser/.zshrc /home/seluser/.zshrc
RUN chsh -s /usr/local/bin/bash seluser \
&& git clone git://github.com/robbyrussell/oh-my-zsh.git /home/seluser/.oh-my-zsh \
&& chown seluser:seluser /home/seluser/.oh-my-zsh -R \
&& chown seluser:seluser /home/seluser/.zshrc
# setup powerline
RUN apt-get -y install python-pip git \
&& pip install git+https://github.com/powerline/powerline \
&& git clone https://github.com/powerline/powerline.git /tmp/powerline \
&& rsync -avzP /tmp/powerline/powerline /usr/share \
&& git clone https://github.com/powerline/fonts.git --depth=1 /tmp/powerline_font \
&& cd /tmp/powerline_font \
&& ./install.sh \
&& rsync -avzP /root/.local/share/fonts/* /usr/share/fonts \
&& fc-cache -vf \
&& rm -r /tmp/powerline /tmp/powerline_font
# setup xterm
COPY ./home/seluser/.Xresources /home/seluser/.Xresources
RUN apt-get -y install x11-xserver-utils \
&& chown seluser:seluser /home/seluser/.Xresources
# setup tmux
COPY ./home/seluser/.tmux.conf /home/seluser/.tmux.conf
RUN chown seluser:seluser /home/seluser/.tmux.conf
# setup vim
COPY ./home/seluser/.vimrc /home/seluser/.vimrc
RUN chown seluser:seluser /home/seluser/.vimrc
# change vnc password
RUN x11vnc -storepasswd skylar /home/seluser/.vnc/passwd
# custom startup script
COPY ./opt/bin/entry_point.sh /opt/bin/entry_point.sh
RUN chmod a+x /opt/bin/entry_point.sh
# add supervisor to restart services when crashed
RUN apt-get -y install supervisor \
&& mkdir -p /var/log/supervisor
COPY ./etc/supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./opt/bin/supervisor_pulseaudio.sh /opt/bin/supervisor_pulseaudio.sh
COPY ./opt/bin/supervisor_pavucontrol.sh /opt/bin/supervisor_pavucontrol.sh
COPY ./opt/bin/supervisor_xterm.sh /opt/bin/supervisor_xterm.sh
USER seluser