-
Notifications
You must be signed in to change notification settings - Fork 115
Add Fedora 42 test image #1407
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
Merged
Add Fedora 42 test image #1407
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.