Bug 1209663: remove unused docker images; r=mrrrgn DONOTBUILD
authorDustin J. Mitchell <dustin@mozilla.com>
Fri, 02 Oct 2015 11:49:31 -0400
changeset 299191 1b4ce33cbf8f047fed094474ef8b08de90ebd9d7
parent 299190 54e7351f2a6ac4abb285f0768df545726b2c4e80
child 299192 af829895379d1e384fae6e89f01a7b2ae4467b62
push id5392
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:08:23 +0000
treeherdermozilla-beta@16ce8562a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrrrgn
bugs1209663
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1209663: remove unused docker images; r=mrrrgn DONOTBUILD
testing/docker/desktop32-build/Dockerfile
testing/docker/desktop32-build/REGISTRY
testing/docker/desktop32-build/VERSION
testing/docker/desktop32-build/bin/build.sh
testing/docker/desktop32-build/bin/checkout-sources.sh
testing/docker/desktop32-build/buildprops.json
testing/docker/desktop32-build/hacks.sh
testing/docker/desktop32-build/oauth.txt
testing/docker/ubuntu-build/Dockerfile
testing/docker/ubuntu-build/REGISTRY
testing/docker/ubuntu-build/VERSION
testing/docker/ubuntu-build/build-setup.sh
testing/docker/ubuntu-build/hgrc
testing/docker/ubuntu-build/system-setup.sh
testing/docker/ubuntu32-build/Dockerfile
testing/docker/ubuntu32-build/REGISTRY
testing/docker/ubuntu32-build/VERSION
testing/docker/ubuntu32-build/build-setup.sh
testing/docker/ubuntu32-build/hgrc
testing/docker/ubuntu32-build/system-setup.sh
deleted file mode 100644
--- a/testing/docker/desktop32-build/Dockerfile
+++ /dev/null
@@ -1,36 +0,0 @@
-FROM          taskcluster/ubuntu32-build:0.0.5
-MAINTAINER    Morgan Reece Phillips <winter2718@gmail.com>
-
-# Add build scripts; these are the entry points from the taskcluster worker, and
-# operate on environment variables
-ADD                 bin /home/worker/bin
-RUN                 chmod +x /home/worker/bin/*
-
-##
-# COMPILER HACKS
-##
-ADD                 hacks.sh /tmp/
-RUN                 /tmp/hacks.sh
-
-# So that the compilers can find necessary libraries
-# gcc
-ENV LIBRARY_PATH    /usr/lib/i386-linux-gnu
-ENV PKG_CONFIG_PATH /usr/lib/i386-linux-gnu/pkgconfig
-
-# Stubbed out credentials; mozharness looks for this file an issues a WARNING
-# if it's not found, which causes the build to fail.  Note that this needs to
-# be in the parent of the workspace directory and in the directory where
-# mozharness is run (not its --work-dir).  See Bug 1169652.
-ADD                 oauth.txt /home/worker/
-
-# stubbed out buildprops, which keeps mozharness from choking
-# Note that this needs to be in the parent of the workspace directory and in
-# the directory where mozharness is run (not its --work-dir)
-ADD                 buildprops.json /home/worker/
-
-# Make sure commands from here on run as `worker`
-# XXX but non-root tasks aren't yet supported - bug 1093833
-# USER worker
-
-# Set a default command useful for debugging
-CMD ["/bin/bash", "--login"]
deleted file mode 100644
--- a/testing/docker/desktop32-build/REGISTRY
+++ /dev/null
@@ -1,1 +0,0 @@
-quay.io/djmitche
deleted file mode 100644
--- a/testing/docker/desktop32-build/VERSION
+++ /dev/null
@@ -1,1 +0,0 @@
-0.0.3
deleted file mode 120000
--- a/testing/docker/desktop32-build/bin/build.sh
+++ /dev/null
@@ -1,1 +0,0 @@
-testing/docker/desktop-build/bin/build.sh
\ No newline at end of file
deleted file mode 100644
--- a/testing/docker/desktop32-build/bin/checkout-sources.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/bash -vex
-
-set -x -e
-
-# Inputs, with defaults
-
-# mozharness builds use three repositories: gecko (source), mozharness (build
-# scripts) and tools (miscellaneous) for each, specify *_REPOSITORY.  If the
-# revision is not in the standard repo for the codebase, specify *_BASE_REPO as
-# the canonical repo to clone and *_HEAD_REPO as the repo containing the
-# desired revision.  For Mercurial clones, only *_HEAD_REV is required; for Git
-# clones, specify the branch name to fetch as *_HEAD_REF and the desired sha1
-# as *_HEAD_REV.
-
-: GECKO_REPOSITORY              ${GECKO_REPOSITORY:=https://hg.mozilla.org/mozilla-central}
-: GECKO_BASE_REPOSITORY         ${GECKO_BASE_REPOSITORY:=${GECKO_REPOSITORY}}
-: GECKO_HEAD_REPOSITORY         ${GECKO_HEAD_REPOSITORY:=${GECKO_REPOSITORY}}
-: GECKO_HEAD_REV                ${GECKO_HEAD_REV:=default}
-: GECKO_HEAD_REF                ${GECKO_HEAD_REF:=${GECKO_HEAD_REV}}
-
-: TOOLS_REPOSITORY              ${TOOLS_REPOSITORY:=https://hg.mozilla.org/build/tools}
-: TOOLS_BASE_REPOSITORY         ${TOOLS_BASE_REPOSITORY:=${TOOLS_REPOSITORY}}
-: TOOLS_HEAD_REPOSITORY         ${TOOLS_HEAD_REPOSITORY:=${TOOLS_REPOSITORY}}
-: TOOLS_HEAD_REV                ${TOOLS_HEAD_REV:=default}
-: TOOLS_HEAD_REF                ${TOOLS_HEAD_REF:=${TOOLS_HEAD_REV}}
-
-: WORKSPACE                     ${WORKSPACE:=/home/worker/workspace}
-
-set -v
-
-# check out tools where mozharness expects it to be ($PWD/build/tools and $WORKSPACE/build/tools)
-tc-vcs checkout $WORKSPACE/build/tools $TOOLS_BASE_REPOSITORY $TOOLS_HEAD_REPOSITORY $TOOLS_HEAD_REV $TOOLS_HEAD_REF
-if [ ! -d build ]; then
-    mkdir -p build
-    ln -s $WORKSPACE/build/tools build/tools
-fi
-
-tc-vcs checkout $WORKSPACE/build/src $GECKO_BASE_REPOSITORY $GECKO_HEAD_REPOSITORY $GECKO_HEAD_REV $GECKO_HEAD_REF
deleted file mode 100644
--- a/testing/docker/desktop32-build/buildprops.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "properties": {
-    "buildername": ""
-  },
-  "sourcestamp": {
-    "changes": []
-  },
-  "comments": "TaskCluster Job"
-}
deleted file mode 100755
--- a/testing/docker/desktop32-build/hacks.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-##
-# Install compiler hacks, necessary for builds to work properly,
-# but ultimately to be removed in favor of something cleaner
-##
-
-ln -s /usr/include/linux/a.out.h /usr/include/a.out.h
deleted file mode 100644
--- a/testing/docker/desktop32-build/oauth.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-taskcluster_clientId = None
-taskcluster_accessToken = None
deleted file mode 100644
--- a/testing/docker/ubuntu-build/Dockerfile
+++ /dev/null
@@ -1,36 +0,0 @@
-FROM          ubuntu:14.04
-MAINTAINER    Morgan Reece Phillips <winter2718@gmail.com>
-
-### add worker user and setup its workspace
-RUN useradd -d /home/worker -s /bin/bash -m worker
-
-# install non-build specific dependencies in a single layer
-ADD           system-setup.sh   /tmp/system-setup.sh
-RUN           bash /tmp/system-setup.sh
-
-# configure git and install tc-vcs
-RUN git config --global user.email "nobody@mozilla.com" && \
-    git config --global user.name "mozilla"
-RUN npm install -g taskcluster-vcs@2.3.12
-
-# Ensure that build specific dependencies live in a single layer
-ADD           build-setup.sh   /tmp/build-setup.sh
-RUN           bash /tmp/build-setup.sh
-
-# Builds need the share module enabled
-ADD           hgrc /home/worker/.hgrc
-
-# 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
-ENV           HOSTNAME      taskcluster-worker
-
-# Declare default working folder
-RUN chown -R worker:worker /home/worker/* /home/worker/.*
-WORKDIR       /home/worker
-
-# Set a default command useful for debugging
-CMD ["/bin/bash", "--login"]
deleted file mode 100644
--- a/testing/docker/ubuntu-build/REGISTRY
+++ /dev/null
@@ -1,1 +0,0 @@
-taskcluster
deleted file mode 100644
--- a/testing/docker/ubuntu-build/VERSION
+++ /dev/null
@@ -1,1 +0,0 @@
-0.0.7
deleted file mode 100644
--- a/testing/docker/ubuntu-build/build-setup.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-
-set -ve
-
-test `whoami` == 'root';
-
-# run mozbootstrap to install build specific dependencies
-wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
-python bootstrap.py --application-choice=desktop --no-interactive
-
-# note that TC will replace workspace with a cache mount; there's no sense
-# creating anything inside there
-mkdir -p /home/worker/workspace
-chown worker:worker /home/worker/workspace
-
-# /builds is *not* replaced with a mount in the docker container. The worker
-# user writes to lots of subdirectories, though, so it's owned by that user
-mkdir -p /builds
-chown worker:worker /builds
-
-# install tooltool directly from github where tooltool_wrapper.sh et al. expect
-# to find it
-wget -O /builds/tooltool.py https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py
-chmod +x /builds/tooltool.py
-
-# check out the tools repo; this will be updated as necessary in each container
-# but it changes infrequently so it makes sense to cache in place
-tc-vcs checkout /builds/tools https://hg.mozilla.org/build/tools
-chown -R worker:worker /builds/tools
-
-rm /tmp/build-setup.sh
deleted file mode 100644
--- a/testing/docker/ubuntu-build/hgrc
+++ /dev/null
@@ -1,2 +0,0 @@
-[extensions]
-share =
deleted file mode 100644
--- a/testing/docker/ubuntu-build/system-setup.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env bash
-
-set -ve
-
-test `whoami` == 'root';
-
-apt-get update -y
-apt-get install -y \
-    wget \
-    python g++-multilib \
-    git\
-    nodejs-legacy \
-    npm \
-    curl \
-    x11-utils \
-    python-virtualenv \
-    valgrind \
-    uuid-dev \
-    sqlite3
-
-# the Android SDK contains some 32-bit binaries (aapt among them) that require this
-apt-get install -y lib32z1
-
-rm /tmp/system-setup.sh
deleted file mode 100644
--- a/testing/docker/ubuntu32-build/Dockerfile
+++ /dev/null
@@ -1,36 +0,0 @@
-FROM          quay.io/mrrrgn/ubuntu32:14.04
-MAINTAINER    Morgan Reece Phillips <winter2718@gmail.com>
-
-### add worker user and setup its workspace
-RUN useradd -d /home/worker -s /bin/bash -m worker
-
-# install non-build specific dependencies in a single layer
-ADD           system-setup.sh   /tmp/system-setup.sh
-RUN           bash /tmp/system-setup.sh
-
-# configure git and install tc-vcs
-RUN git config --global user.email "nobody@mozilla.com" && \
-    git config --global user.name "mozilla"
-RUN npm install -g taskcluster-vcs@2.3.12
-
-# Ensure that build specific dependencies live in a single layer
-ADD           build-setup.sh   /tmp/build-setup.sh
-RUN           bash /tmp/build-setup.sh
-
-# Builds need the share module enabled
-ADD           hgrc /home/worker/.hgrc
-
-# 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
-ENV           HOSTNAME      taskcluster-worker
-
-# Declare default working folder
-RUN chown -R worker:worker /home/worker/* /home/worker/.*
-WORKDIR       /home/worker
-
-# Set a default command useful for debugging
-CMD ["/bin/bash", "--login"]
deleted file mode 100644
--- a/testing/docker/ubuntu32-build/REGISTRY
+++ /dev/null
@@ -1,1 +0,0 @@
-taskcluster
deleted file mode 100644
--- a/testing/docker/ubuntu32-build/VERSION
+++ /dev/null
@@ -1,1 +0,0 @@
-0.0.7
deleted file mode 100644
--- a/testing/docker/ubuntu32-build/build-setup.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env bash
-
-set -ve
-
-test `whoami` == 'root';
-
-# This is a known workaround for a Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430224
-dpkg-divert --rename --add /usr/sbin/invoke-rc.d
-ln -s /bin/true /usr/sbin/invoke-rc.d
-
-# run mozbootstrap to install build specific dependencies
-wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
-python bootstrap.py --application-choice=desktop --no-interactive
-
-# Clean up after Ubuntu/Upstart bug workaround
-rm /usr/sbin/invoke-rc.d
-dpkg-divert --rename --remove /usr/sbin/invoke-rc.d
-
-# note that TC will replace workspace with a cache mount; there's no sense
-# creating anything inside there
-mkdir -p /home/worker/workspace
-chown worker:worker /home/worker/workspace
-
-# /builds is *not* replaced with a mount in the docker container. The worker
-# user writes to lots of subdirectories, though, so it's owned by that user
-mkdir -p /builds
-chown worker:worker /builds
-
-# install tooltool directly from github where tooltool_wrapper.sh et al. expect
-# to find it
-wget -O /builds/tooltool.py https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py
-chmod +x /builds/tooltool.py
-
-# check out the tools repo; this will be updated as necessary in each container
-# but it changes infrequently so it makes sense to cache in place
-tc-vcs checkout /builds/tools https://hg.mozilla.org/build/tools
-chown -R worker:worker /builds/tools
-
-rm /tmp/build-setup.sh
deleted file mode 100644
--- a/testing/docker/ubuntu32-build/hgrc
+++ /dev/null
@@ -1,2 +0,0 @@
-[extensions]
-share =
deleted file mode 100644
--- a/testing/docker/ubuntu32-build/system-setup.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-
-set -ve
-
-test `whoami` == 'root';
-
-apt-get update -y
-apt-get install -y \
-    wget \
-    python g++-multilib \
-    git\
-    nodejs-legacy \
-    npm \
-    curl \
-    x11-utils \
-    python-virtualenv \
-    valgrind \
-    lib64z1-dev
-
-rm /tmp/system-setup.sh