From 4d547224ccff8c3a5e245088058d9aeab0035df0 Mon Sep 17 00:00:00 2001 From: "E. Dunham" Date: Thu, 4 Jan 2018 14:27:47 -0800 Subject: [PATCH] Dockerfile to build container used by TaskCluster TC pulls the container from https://hub.docker.com/r/servobrowser/servo-linux-dev/ Perms to upload there are managed with other infra secrets This is as the Dockerfile stood when I last uploaded; future work includes automating the build and push upon Dockerfile changes landing in this repo. --- etc/ci/Dockerfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 etc/ci/Dockerfile diff --git a/etc/ci/Dockerfile b/etc/ci/Dockerfile new file mode 100644 index 000000000000..2154c9cd2d71 --- /dev/null +++ b/etc/ci/Dockerfile @@ -0,0 +1,44 @@ +FROM debian:jessie +MAINTAINER Servo Dockerfile Maintainers + +# Rust installation from https://hub.docker.com/r/jimmycuadra/rust/ +ENV USER root +ENV RUST_VERSION=1.18.0 + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + curl \ + git \ + libssl-dev \ + pkg-config && \ + curl -sO https://static.rust-lang.org/dist/rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz && \ + tar -xzf rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz && \ + ./rust-$RUST_VERSION-x86_64-unknown-linux-gnu/install.sh --without=rust-docs && \ + DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y curl && \ + DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \ + rm -rf \ + rust-$RUST_VERSION-x86_64-unknown-linux-gnu \ + rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz \ + /var/lib/apt/lists/* \ + /tmp/* \ + /var/tmp/* && \ + mkdir /source + +# Servo's requirements +RUN apt-get update && apt-get install -y \ + xvfb \ + python \ + python3 \ + python-pip + +RUN pip install virtualenv +RUN useradd servo + +# TODO: RUN wget https://raw.githubusercontent.com/servo/saltfs/master/xvfb/xvfb.conf /etc/init/xvfb.conf +# TODO: cross: Servo's servo-build-depenencies salt state +# TODO: cross: Servo's servo-build-dependencies.android +# TODO: cross: Servo's servo-build-dependencies.arm +# TODO: builder-specific config from saltfs/buildbot/master/files/config/environments.py +