summaryrefslogtreecommitdiff
path: root/testing/docker/base-test/Dockerfile
blob: dd0bf77febdf3c279511700ac9a048d6f309c81e (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
FROM          quay.io/mozilla/ubuntu:12.04
MAINTAINER    Jonas Finnemann Jensen <jopsen@gmail.com>


COPY sources.list /etc/apt/sources.list

RUN useradd -d /home/worker -s /bin/bash -m worker
# allow the worker user to access video devices
RUN usermod -a -G video worker

RUN apt-get update && apt-get install -y --force-yes \
  alsa-base \
  alsa-utils \
  autoconf2.13 \
  bluez-alsa \
  bluez-alsa:i386 \
  bluez-cups \
  bluez-gstreamer \
  build-essential \
  ca-certificates \
  ccache \
  clang \
  curl \
  fonts-kacst \
  fonts-kacst-one \
  fonts-liberation \
  fonts-stix \
  fonts-unfonts-core \
  fonts-unfonts-extra \
  fonts-vlgothic \
  g++-multilib \
  gcc-multilib \
  gir1.2-gnomebluetooth-1.0 \
  git \
  gstreamer0.10-alsa \
  gstreamer0.10-ffmpeg \
  gstreamer0.10-plugins-bad \
  gstreamer0.10-plugins-base \
  gstreamer0.10-plugins-good \
  gstreamer0.10-plugins-ugly \
  gstreamer0.10-tools \
  libasound2-dev \
  libasound2-plugins:i386 \
  libcanberra-pulse \
  libcurl4-openssl-dev \
  libdbus-1-dev \
  libdbus-glib-1-dev \
  libdrm-intel1:i386 \
  libdrm-nouveau1a:i386 \
  libdrm-radeon1:i386 \
  libdrm2:i386 \
  libexpat1:i386 \
  libgconf2-dev \
  libgl1-mesa-dri \
  libgl1-mesa-dri:i386 \
  libgl1-mesa-glx \
  libgl1-mesa-glx:i386 \
  libglapi-mesa \
  libglapi-mesa:i386 \
  libglu1-mesa \
  libglu1-mesa:i386 \
  libgnome-bluetooth8 \
  libgstreamer-plugins-base0.10-dev \
  libgstreamer0.10-dev \
  libgtk2.0-dev \
  libiw-dev \
  libllvm2.9 \
  libllvm3.0:i386 \
  libncurses5:i386 \
  libnotify-dev \
  libpulse-dev \
  libpulse-mainloop-glib0:i386 \
  libpulsedsp:i386 \
  libsdl1.2debian:i386 \
  libsox-fmt-alsa \
  libx11-xcb1:i386 \
  libxcb-glx0 \
  libxcb-glx0:i386 \
  libxdamage1:i386 \
  libxfixes3:i386 \
  libxt-dev \
  libxxf86vm1 \
  libxxf86vm1:i386 \
  llvm \
  llvm-2.9 \
  llvm-2.9-dev \
  llvm-2.9-runtime \
  llvm-dev \
  llvm-runtime \
  mercurial \
  mesa-common-dev \
  nano \
  pulseaudio \
  pulseaudio-module-X11 \
  pulseaudio-module-bluetooth \
  pulseaudio-module-gconf \
  python-dev \
  python-pip \
  rlwrap \
  screen \
  software-properties-common \
  sudo \
  tar \
  ttf-arphic-uming \
  ttf-dejavu \
  ttf-indic-fonts-core \
  ttf-kannada-fonts \
  ttf-oriya-fonts \
  ttf-paktype \
  ttf-punjabi-fonts \
  ttf-sazanami-mincho \
  unzip \
  uuid \
  vim \
  wget \
  x11-xserver-utils \
  x11-utils \
  xvfb \
  yasm \
  zip

ENV NODE_VERSION v4.2.2
RUN cd /usr/local/ && \
    curl https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.gz | tar -xz --strip-components 1 && \
    node -v

# Set variable normally configured at login, by the shells parent process, these
# are taken from GNU su manual
ENV           HOME          /home/worker
ENV           SHELL         /bin/bash
ENV           USER          worker
ENV           LOGNAME       worker

# Declare default working folder
WORKDIR       /home/worker

# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]