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 a Fedora 41 helix image #1280

Merged
merged 4 commits into from
Dec 5, 2024
Merged
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
75 changes: 75 additions & 0 deletions src/fedora/41/helix/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
FROM library/fedora:41 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 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 library/fedora:41

# 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

# Install MSQuic. Fedora 41 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

# Needed for .NET libraries tests to pass
ENV LANG=en-US.UTF-8

# 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 \
&& chmod +s /usr/bin/ping

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
12 changes: 12 additions & 0 deletions src/fedora/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
}
}
]
},
{
"platforms": [
{
"dockerfile": "src/fedora/41/helix",
"os": "linux",
"osVersion": "fedora41",
"tags": {
"fedora-41-helix": {}
}
}
]
}
]
}
Expand Down
Loading