This switches the android-components docker image to a debian 12 base,
although it could maybe stay on ubuntu 22.04 instead.
Since commit
ac9107b988,
application-services builds using an ubuntu 22.04 image, and android-components
consumes the nimbus-fml binary built from that, so running on debian 11 fails
due to an older libc.
Because pip in debian 12 refuses to work outside a virtualenv, pass
`--break-system-packages` to silence the error.
Differential Revision: https://phabricator.services.mozilla.com/D201418
43 lines
1.8 KiB
Docker
43 lines
1.8 KiB
Docker
ARG DOCKER_IMAGE_PARENT
|
|
FROM $DOCKER_IMAGE_PARENT
|
|
|
|
LABEL authors="Richard Pappalardo <rpappalax@gmail.com>, Aaron Train <atrain@mozilla.com>"
|
|
LABEL maintainer="Richard Pappalardo <rpappalax@gmail.com>"
|
|
|
|
#----------------------------------------------------------------------------------------------------------------------
|
|
#-- Test tools --------------------------------------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------------------------------------------------
|
|
|
|
RUN chown -R worker:worker ${HOME}/.config
|
|
|
|
USER worker:worker
|
|
|
|
ENV GOOGLE_SDK_DOWNLOAD ./gcloud.tar.gz
|
|
ENV GOOGLE_SDK_VERSION 450
|
|
|
|
ENV TEST_TOOLS /builds/worker/test-tools
|
|
ENV PATH ${PATH}:${TEST_TOOLS}:${TEST_TOOLS}/google-cloud-sdk/bin
|
|
|
|
RUN mkdir -p ${TEST_TOOLS} && \
|
|
mkdir -p ${HOME}/.config/gcloud
|
|
|
|
RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GOOGLE_SDK_VERSION}.0.0-linux-x86_64.tar.gz --output ${GOOGLE_SDK_DOWNLOAD} \
|
|
&& tar -xvf ${GOOGLE_SDK_DOWNLOAD} -C ${TEST_TOOLS} \
|
|
&& rm -f ${GOOGLE_SDK_DOWNLOAD} \
|
|
&& ${TEST_TOOLS}/google-cloud-sdk/install.sh --quiet \
|
|
&& ${TEST_TOOLS}/google-cloud-sdk/bin/gcloud --quiet components update
|
|
|
|
# Flank v21.08.1 (pinned release)
|
|
RUN URL_FLANK_BIN="$($CURL --silent 'https://api.github.com/repos/Flank/flank/releases/48276753' | jq -r '.assets[] | select(.browser_download_url | test("flank.jar")) .browser_download_url')" \
|
|
&& $CURL --output "${TEST_TOOLS}/flank.jar" "${URL_FLANK_BIN}" \
|
|
&& chmod +x "${TEST_TOOLS}/flank.jar"
|
|
|
|
# Used in parse-ui-test-fromfile.py
|
|
RUN pip3 install --break-system-packages junitparser beautifultable
|
|
|
|
# Used for env var ingest in testrail.py
|
|
RUN pip3 install --break-system-packages python-dotenv
|
|
|
|
# run-task expects to run as root
|
|
USER root
|