Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian trixie image #1288

Merged
merged 12 commits into from
Dec 11, 2024
75 changes: 75 additions & 0 deletions src/debian/13/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
FROM library/debian:trixie AS base

RUN apt-get update
richlander marked this conversation as resolved.
Show resolved Hide resolved

FROM base AS venv

RUN apt-get install -y \
coreutils \
python3-dev \
python3-pip \
python3-venv \
&& rm -rf /var/lib/apt/lists/*

RUN python3 -m venv /venv \
&& . /venv/bin/activate \
&& pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple \
&& pip install ./helix_scripts-*-py3-none-any.whl

FROM base
ARG TARGETARCH

# Install Helix Dependencies
RUN apt-get install -y \
apt-transport-https \
curl \
&& curl -sOL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get install -y \
autoconf \
automake \
at \
build-essential \
gcc \
gdb \
git \
iputils-ping \
libcurl4 \
libffi-dev \
libgdiplus \
libicu-dev \
libmsquic \
libssl-dev \
libtool \
libunwind8 \
lldb \
llvm \
locales \
locales-all \
python3-dev \
python3-pip \
python3-venv \
sudo \
tzdata \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

ENV LANG=en_US.utf8

# Create helixbot user and give rights to sudo without password
# additionally, preinstall the virtualenv packages used for VSTS reporting to save time
RUN /usr/sbin/adduser --disabled-password --gecos '' --uid 1000 --shell /bin/bash --ingroup adm helixbot \
&& chmod 755 /root \
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers

USER helixbot

# Install Helix Dependencies

ENV VIRTUAL_ENV=/home/helixbot/.vsts-env
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY --from=venv /venv $VIRTUAL_ENV
29 changes: 28 additions & 1 deletion src/debian/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,34 @@
}
}
]
}
},
{
"platforms": [
{
"architecture": "amd64",
"dockerfile": "src/debian/13/helix/",
"os": "linux",
"osVersion": "trixie",
"tags": {
"debian-13-helix-amd64": {}
}
}
]
},
{
"platforms": [
{
"architecture": "arm64",
"dockerfile": "src/debian/12/helix/",
richlander marked this conversation as resolved.
Show resolved Hide resolved
"os": "linux",
"osVersion": "trixie",
"tags": {
"debian-13-helix-arm64v8": {}
},
"variant": "v8"
}
]
},
]
}
]
Expand Down
Loading