author Andrew Halberstadt <ahalberstadt@mozilla.com>
Fri, 27 May 2016 10:25:14 -0400
changeset 373232 b242ed563cedd7297b2babd0ff371e225087ccdc
parent 373231 9ff2973f162d2753fc9135e44b39f4e01eace722
child 372126 27fdb5d3e3903ec6747e02d19b14c92c44f15e5d
child 373234 5ddfd3e8be690e4bc6a6402b290fc2fada0ff1cf
permissions -rw-r--r--
Bug 1250904 - Add an hgrc for 'worker' user in testing/docker/desktop-test, r?armenzg This creates some defaults, enables common built-in extensions and sets up Ubuntu's CA file for checking host certificates. MozReview-Commit-ID: DzBlVUs9R8I

FROM          taskcluster/ubuntu1204-test-upd:
MAINTAINER    Jonas Finnemann Jensen <jopsen@gmail.com>

# Add utilities and configuration
COPY           dot-files/config              /home/worker/.config
COPY           dot-files/pulse               /home/worker/.pulse
COPY           dot-files/hgrc                /home/worker/.hgrc
COPY           bin                           /home/worker/bin
RUN            chmod +x bin/*
# TODO: remove this when buildbot is gone
COPY           buildprops.json               /home/worker/buildprops.json
COPY           tc-vcs-config.yml /etc/taskcluster-vcs.yml

# TODO: remove
ADD            https://raw.githubusercontent.com/taskcluster/buildbot-step/master/buildbot_step /home/worker/bin/buildbot_step
RUN chmod u+x /home/worker/bin/buildbot_step

# TODO: remove
ADD            https://s3-us-west-2.amazonaws.com/test-caching/packages/linux64-stackwalk /usr/local/bin/linux64-minidump_stackwalk
RUN chmod +x /usr/local/bin/linux64-minidump_stackwalk

# allow the worker user to access video devices
RUN usermod -a -G video worker

RUN mkdir Documents; mkdir Pictures; mkdir Music; mkdir Videos; mkdir artifacts

# install a new enough npm, plus tc-vcs and tc-npm-cache
RUN npm install -g npm@^2.0.0 \
 && npm install -g taskcluster-vcs@2.3.12 \
 && npm install -g taskcluster-npm-cache@1.1.14 \
 && rm -rf ~/.npm
ENV PATH $PATH:/home/worker/bin

# Remove once running under 'worker' user.  This is necessary for pulseaudio to start
# XXX: change this back to worker:worker once permissions issues are resolved
RUN            chown -R root:root /home/worker

# TODO Re-enable worker when bug 1093833 lands
#USER          worker

# clean up
RUN rm -Rf .cache && mkdir -p .cache

# Disable Ubuntu update prompt
# http://askubuntu.com/questions/515161/ubuntu-12-04-disable-release-notification-of-14-04-in-update-manager
ADD release-upgrades /etc/update-manager/release-upgrades

# Disable tools with on-login popups that interfere with tests; see bug 1240084 and bug 984944.
ADD jockey-gtk.desktop deja-dup-monitor.desktop /etc/xdg/autostart/

# In test.sh we accept START_VNC to start a vnc daemon.
# Exposing this port allows it to work.

# This helps not forgetting setting DISPLAY=:0 when running
# tests outside of test.sh

# Disable apport (Ubuntu app crash reporter) to avoid stealing focus from test runs
ADD apport /etc/default/apport

# Disable font antialiasing for now to match releng's setup
ADD fonts.conf /home/worker/.fonts.conf

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