diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /taskcluster/docker/debian-build | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/docker/debian-build')
-rw-r--r-- | taskcluster/docker/debian-build/Dockerfile | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/taskcluster/docker/debian-build/Dockerfile b/taskcluster/docker/debian-build/Dockerfile new file mode 100644 index 0000000000..29c6280765 --- /dev/null +++ b/taskcluster/docker/debian-build/Dockerfile @@ -0,0 +1,94 @@ +FROM $DOCKER_IMAGE_PARENT +MAINTAINER Mike Hommey <mhommey@mozilla.com> + +VOLUME /builds/worker/checkouts +VOLUME /builds/worker/workspace +VOLUME /builds/worker/tooltool-cache + +ENV XZ_OPT=-T0 + +ARG TASKCLUSTER_ROOT_URL +ARG DOCKER_IMAGE_PACKAGES +RUN /usr/local/sbin/setup_packages.sh $TASKCLUSTER_ROOT_URL $DOCKER_IMAGE_PACKAGES + +# %ARG ARCH +RUN dpkg --add-architecture $ARCH + +# Ideally, we wouldn't need gcc-multilib and the extra linux-libc-dev, +# but the latter is required to make the former installable, and the former +# because of bug 1409276. +# We exclude /usr/share/doc/*/changelog.Debian* files because they might differ +# between i386 and amd64 variants of the packages we build on automation +# because of dates stored in them by debchange (and both might end up installed +# in some cases). +# On Debian 7, pkg-config was not multiarch-aware, so we rely on the $ARCH +# pkg-config being valid on the host. On more recent versions of Debian, we can +# use pkg-config, which is multiarch-aware, but we also need dpkg-dev because +# of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916772. +# +# We also need libstdc++ development files, but the exact version of libstdc++ +# that we need varies between debian versions. +RUN apt-get update && \ + apt-get dist-upgrade && \ + echo path-exclude=/usr/share/doc/*/changelog.Debian* > /etc/dpkg/dpkg.cfg.d/excludes && \ + if grep -q ^8\\. /etc/debian_version; then \ + PKG_CONFIG=pkg-config:$ARCH; \ + else \ + PKG_CONFIG="pkg-config dpkg-dev"; \ + fi && \ + if grep -q ^8\\. /etc/debian_version; then \ + LIBSTDCXX=libstdc++-4.9-dev; \ + elif grep -q ^9\\. /etc/debian_version; then \ + LIBSTDCXX=libstdc++-6-dev; \ + elif grep -q ^10\\. /etc/debian_version; then \ + libstdcxx=libstdc++-8-dev; \ + LIBSTDCXX="$libstdcxx $libstdcxx:$ARCH"; \ + fi && \ + apt-get install \ + autoconf2.13 \ + automake \ + bzip2 \ + curl \ + file \ + gawk \ + gcc-multilib \ + gnupg \ + jq \ + libucl1 \ + p7zip-full \ + procps \ + python-dev \ + python-pip \ + python-setuptools \ + python-virtualenv \ + python3-dev \ + rsync \ + screen \ + tar \ + unzip \ + uuid \ + valgrind \ + wget \ + x11-utils \ + xvfb \ + yasm \ + zip \ + linux-libc-dev \ + linux-libc-dev:$ARCH \ + $PKG_CONFIG \ + $LIBSTDCXX \ + libdbus-glib-1-dev:$ARCH \ + libdrm-dev:$ARCH \ + libfontconfig1-dev:$ARCH \ + libfreetype6-dev:$ARCH \ + libgconf2-dev:$ARCH \ + libgtk-3-dev:$ARCH \ + libgtk2.0-dev:$ARCH \ + libpango1.0-dev:$ARCH \ + libpulse-dev:$ARCH \ + libx11-xcb-dev:$ARCH \ + libxt-dev:$ARCH + +# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb +# %include taskcluster/docker/recipes/xvfb.sh +COPY topsrcdir/taskcluster/docker/recipes/xvfb.sh /builds/worker/scripts/xvfb.sh |