Commit 89299cea authored by Julien Cristau's avatar Julien Cristau
Browse files

Bug 1806655 - update funsize-update-generator docker image to debian 11. r=releng-reviewers,hneiva

parent 646e8d96
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
FROM ubuntu:18.04
MAINTAINER Simon Fraser <sfraser@mozilla.com>
FROM debian:11

# Required software
ENV DEBIAN_FRONTEND noninteractive
@@ -14,9 +13,10 @@ RUN apt-get update -q && \
    libgetopt-simple-perl \
    liblzma-dev \
    locales \
    python3.8 \
    libpython3.8-dev \
    python3 \
    libpython3-dev \
    python3-dev \
    python3-pip \
    xz-utils
RUN useradd -d /home/worker -s /bin/bash -m worker
COPY requirements.txt /
@@ -27,10 +27,6 @@ ENV LANGUAGE en_CA.UTF-8
ENV LANG_ALL en_CA.UTF-8
ENV LC_ALL en_CA.UTF-8

# python-pip installs a lot of dependencies increasing the size of an image
# drastically. Install it like this saves us almost 200M.
RUN bash -c "curl -L https://bootstrap.pypa.io/get-pip.py | python3.8"

RUN ["pip", "install", "-r", "/requirements.txt"]

# scripts
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ fi

# EXTRA_PARAMS is optional
# shellcheck disable=SC2086
python3.8 /home/worker/bin/funsize.py \
python3 /home/worker/bin/funsize.py \
    --artifacts-dir "$ARTIFACTS_DIR" \
    --task-definition /home/worker/task.json \
    --signing-cert "/home/worker/keys/${SIGNING_CERT}.pubkey" \