Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/almalinux/10/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
FROM library/almalinux:10 AS venv

RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
gcc \
gcc-c++ \
python3.12 \
python3.12-devel \
python3.12-pip

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 \
&& rm ./helix_scripts-*-py3-none-any.whl


FROM library/almalinux:10

# Install dependencies
Expand All @@ -37,9 +20,5 @@ RUN adduser --uid 1000 --shell /bin/bash --gid adm helixbot \
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot

USER helixbot
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env

# Install Helix Dependencies
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY --from=venv --chown=helixbot /venv $VIRTUAL_ENV
8 changes: 0 additions & 8 deletions src/almalinux/8/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
# Get recent python3 This is needed to get a pip recent enough
# not to fail the build when installing cryptography library as
# a dependency of the helix scripts.
python39 \
# Required for asp.net core test runs
sudo \
Expand All @@ -31,11 +30,4 @@ RUN adduser --uid 1000 --shell /bin/bash --gid adm helixbot \

USER helixbot
WORKDIR /home/helixbot
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env

RUN python -m venv $VIRTUAL_ENV && \
${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools && \
${VIRTUAL_ENV}/bin/pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
${VIRTUAL_ENV}/bin/pip install ./helix_scripts-*-py3-none-any.whl && \
rm ./helix_scripts-*-py3-none-any.whl
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
25 changes: 0 additions & 25 deletions src/almalinux/9/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
FROM library/almalinux:9 AS venv

RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
gcc \
gcc-c++ \
python3.12 \
python3.12-devel \
python3.12-pip

RUN python3 -m venv /venv \
&& . /venv/bin/activate \
&& pip install --upgrade pip setuptools \
&& 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 \
&& rm ./helix_scripts-*-py3-none-any.whl


FROM library/almalinux:9

# Install dependencies
Expand All @@ -40,10 +22,3 @@ RUN adduser --uid 1000 --shell /bin/bash --gid adm helixbot \
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot

USER helixbot
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env

# Install Helix Dependencies
RUN python3 -m venv $VIRTUAL_ENV \
&& ${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY --from=venv --chown=helixbot /venv $VIRTUAL_ENV
21 changes: 0 additions & 21 deletions src/alpine/3.23/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
FROM library/alpine:3.23 AS venv

RUN apk add --upgrade --no-cache \
cargo \
python3-dev \
build-base \
libffi-dev \
openssl-dev \
gcc \
linux-headers

RUN python3 -m venv /venv && \
source /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 && \
rm ./helix_scripts-*-py3-none-any.whl

FROM library/alpine:3.23

# Install .NET and test dependencies
Expand Down Expand Up @@ -47,7 +30,3 @@ RUN /usr/sbin/adduser -D -g '' -G adm -s /bin/bash -u 1000 helixbot && \
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 --chown=helixbot /venv $VIRTUAL_ENV
23 changes: 0 additions & 23 deletions src/alpine/edge/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
FROM library/alpine:edge AS venv

RUN apk add --upgrade --no-cache \
cargo \
python3-dev \
build-base \
libffi-dev \
openssl-dev \
gcc \
linux-headers

RUN python3 -m venv /venv && \
source /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 && \
rm ./helix_scripts-*-py3-none-any.whl

FROM library/alpine:edge

# Install .NET and test dependencies
Expand Down Expand Up @@ -45,9 +28,3 @@ RUN /usr/sbin/adduser -D -g '' -G adm -s /bin/bash -u 1000 helixbot && \
echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot

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 --chown=helixbot /venv $VIRTUAL_ENV
21 changes: 0 additions & 21 deletions src/azurelinux/3.0/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
FROM mcr.microsoft.com/azurelinux/base/core:3.0 as venv

RUN tdnf install --refresh -y \
build-essential \
ca-certificates-microsoft \
gcc \
iputils \
python3 \
python3-devel \
python3-pip

RUN python3 -m venv /venv && \
source /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 && \
rm ./helix_scripts-*-py3-none-any.whl

FROM mcr.microsoft.com/azurelinux/base/core:3.0

# Install .NET and test dependencies
Expand Down Expand Up @@ -43,7 +26,3 @@ RUN /usr/sbin/useradd -c '' --uid 1000 --shell /bin/bash --groups adm helixbot &
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 --chown=helixbot /venv $VIRTUAL_ENV
21 changes: 0 additions & 21 deletions src/azurelinux/4.0/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
FROM azlpubstagingacroxz2o4gw.azurecr.io/azurelinux/base/core:4.0 AS venv

RUN dnf install --refresh -y \
ca-certificates \
iputils \
python3 \
python3-devel \
python3-pip

RUN python3 -m venv /venv && \
source /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 && \
rm ./helix_scripts-*-py3-none-any.whl

FROM azlpubstagingacroxz2o4gw.azurecr.io/azurelinux/base/core:4.0

# Install .NET and test dependencies
Expand All @@ -38,9 +23,3 @@ RUN /usr/sbin/useradd -c '' --uid 1000 --shell /bin/bash --groups adm helixbot &
mkdir -p /home/helixbot/ && chown -R helixbot /home/helixbot/

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 --chown=helixbot /venv $VIRTUAL_ENV
20 changes: 0 additions & 20 deletions src/centos-stream/10/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
FROM quay.io/centos/centos:stream10 AS venv

RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
gcc \
gcc-c++ \
python3 \
python3-devel \
python3-pip

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 \
&& rm ./helix_scripts-*-py3-none-any.whl

FROM quay.io/centos/centos:stream10

# Install dependencies
Expand Down Expand Up @@ -54,9 +38,5 @@ RUN /usr/sbin/adduser --uid 1000 --shell /bin/bash --gid adm helixbot \
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot

USER helixbot
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env

# Install Helix Dependencies
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY --from=venv --chown=helixbot /venv $VIRTUAL_ENV
7 changes: 0 additions & 7 deletions src/centos-stream/9/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,4 @@ RUN /usr/sbin/adduser --uid 1000 --shell /bin/bash --gid adm helixbot \

USER helixbot
WORKDIR /home/helixbot
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env

RUN python -m venv $VIRTUAL_ENV && \
${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools && \
${VIRTUAL_ENV}/bin/pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
${VIRTUAL_ENV}/bin/pip install ./helix_scripts-*-py3-none-any.whl && \
rm ./helix_scripts-*-py3-none-any.whl
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
7 changes: 0 additions & 7 deletions src/centos-stream/9/mlnet/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,4 @@ RUN /usr/sbin/adduser --uid 1000 --shell /bin/bash --gid adm helixbot \

USER helixbot
WORKDIR /home/helixbot
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env

RUN python -m venv $VIRTUAL_ENV && \
${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools && \
${VIRTUAL_ENV}/bin/pip download --no-deps helix-scripts --index-url https://dnceng.pkgs.visualstudio.com/public/_packaging/helix-client-prod/pypi/simple && \
${VIRTUAL_ENV}/bin/pip install ./helix_scripts-*-py3-none-any.whl && \
rm ./helix_scripts-*-py3-none-any.whl
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
24 changes: 0 additions & 24 deletions src/debian/12/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
FROM library/debian:bookworm AS venv

RUN apt-get update \
&& apt-get upgrade -y \
&& 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 install --upgrade pip setuptools \
&& 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 \
&& rm ./helix_scripts-*-py3-none-any.whl

FROM library/debian:bookworm

# Install Helix Dependencies
Expand Down Expand Up @@ -67,9 +49,3 @@ RUN /usr/sbin/adduser --disabled-password --gecos '' --uid 1000 --shell /bin/bas

USER helixbot

# Install Helix Dependencies
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env
RUN python3 -m venv $VIRTUAL_ENV \
&& ${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY --from=venv --chown=helixbot /venv $VIRTUAL_ENV
34 changes: 0 additions & 34 deletions src/debian/12/helix/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
FROM library/debian:bookworm AS venv

RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
curl \
pkg-config \
coreutils \
python3-dev \
python3-pip \
python3-venv \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*

# Install latest version of rust because the package version provided by Debian is too old.
# Need 1.65.0+ to install the Helix scripts due to cryptography-openssl dependency.
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN python3 -m venv /venv \
&& . /venv/bin/activate \
&& pip install --upgrade pip setuptools \
&& 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 \
&& rm ./helix_scripts-*-py3-none-any.whl

FROM library/debian:bookworm

RUN apt-get update \
Expand Down Expand Up @@ -75,10 +48,3 @@ RUN /usr/sbin/adduser --disabled-password --gecos '' --uid 1000 --shell /bin/bas
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot

USER helixbot

# Install Helix Dependencies
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env
RUN python3 -m venv $VIRTUAL_ENV \
&& ${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY --from=venv --chown=helixbot /venv $VIRTUAL_ENV
25 changes: 0 additions & 25 deletions src/debian/12/helix/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
FROM library/debian:bookworm AS venv

RUN apt-get update \
&& apt-get upgrade -y \
&& 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 install --upgrade pip setuptools \
&& 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 \
&& rm ./helix_scripts-*-py3-none-any.whl

FROM library/debian:bookworm

# Install Helix Dependencies
Expand Down Expand Up @@ -65,10 +47,3 @@ RUN /usr/sbin/adduser --disabled-password --gecos '' --uid 1000 --shell /bin/bas
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot

USER helixbot

# Install Helix Dependencies
ENV VIRTUAL_ENV=/home/helixbot/.vsts-env
RUN python3 -m venv $VIRTUAL_ENV \
&& ${VIRTUAL_ENV}/bin/pip install --upgrade pip setuptools
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY --from=venv --chown=helixbot /venv $VIRTUAL_ENV
24 changes: 0 additions & 24 deletions src/debian/13/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
FROM library/debian:trixie AS venv

RUN apt-get update \
&& apt-get install -y \
cargo \
coreutils \
libffi-dev \
libssl-dev \
pkg-config \
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 \
&& rm ./helix_scripts-*-py3-none-any.whl

FROM library/debian:trixie
ARG TARGETARCH

Expand Down Expand Up @@ -75,7 +55,3 @@ RUN /usr/sbin/adduser --disabled-password --gecos '' --uid 1000 --shell /bin/bas
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 --chown=helixbot /venv $VIRTUAL_ENV
Loading
Loading