Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
77 changes: 77 additions & 0 deletions src/fedora/42/helix/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
FROM library/fedora:42 AS venv

RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
dnf-plugins-core \
&& dnf install --setopt=install_weak_deps=False --setopt tsflags=nodocs -y \
openssl \
python3-devel \
python3-pip \
gcc \
libatomic \
redhat-rpm-config \
&& dnf clean all

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/fedora:42

# Install MSQuic. Fedora 42 does not have it in the repositories, so use the Fedora 40 package

RUN dnf config-manager addrepo --from-repofile=https://packages.microsoft.com/fedora/40/prod/config.repo \
&& dnf install --setopt=install_weak_deps=False --setopt tsflags=nodocs -y \
libmsquic

# Install Dependencies

RUN dnf upgrade --refresh -y \
&& dnf install --setopt tsflags=nodocs -y \
dnf-plugins-core \
&& dnf install --setopt=install_weak_deps=False --setopt tsflags=nodocs -y \
# Helix dependencies
python3 \
python3-pip \
# Tools used by build automation
azure-cli \
git \
jq \
tar \
redhat-rpm-config \
procps \
zip \
# Runtime dependencies
curl \
icu \
iputils \
krb5-libs \
libatomic \
libunwind \
lttng-ust \
openssl \
sudo \
&& dnf clean all

ENV \
# Needed for .NET libraries tests to pass
LANG=en-US.UTF-8 \
# Needed for WCF tests to pass (https://github.com/dotnet/wcf/pull/5744#issuecomment-2702201438)
OPENSSL_ENABLE_SHA1_SIGNATURES=1

# create helixbot user and give rights to sudo without password
# Fedora does not have all options as other Linux systems
RUN /usr/sbin/adduser --uid 1000 --shell /bin/bash --group adm helixbot \
&& chmod 755 /root \
&& echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot \
&& chmod +s /usr/bin/ping

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
13 changes: 13 additions & 0 deletions src/fedora/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@
}
}
]
},
{
"platforms": [
{
"dockerfile": "src/fedora/42/helix/amd64",
"os": "linux",
"osVersion": "fedora42",
"tags": {
"fedora-42-helix": {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tag should be removed. It was included in the other versions for backwards compatibility as we transition to the strict pattern of using arch in the tag name.

"fedora-42-helix-amd64": {}
}
}
]
}
]
}
Expand Down
Loading