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

Build RPM for Fedora #22278

Closed
jiasli opened this issue May 5, 2022 · 2 comments · Fixed by #22945
Closed

Build RPM for Fedora #22278

jiasli opened this issue May 5, 2022 · 2 comments · Fixed by #22945

Comments

@jiasli
Copy link
Member

jiasli commented May 5, 2022

Is your feature request related to a problem? Please describe.

Currently RPMs are built with CentOS 7 and Red Hat UBI 8:

- job: BuildRpmPackageCentOS7
displayName: Build Rpm Package CentOS 7
# Uncomment this line to disable this job on Pull Requests
# condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: Bash@3
displayName: 'Build Rpm Package'
inputs:
targetType: 'filePath'
filePath: scripts/release/rpm/pipeline.sh
env:
IMAGE: centos7
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'SBOM'
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@0
displayName: 'Publish Artifact: rpm'
inputs:
TargetPath: $(Build.ArtifactStagingDirectory)
# Should be 'rpm-centos7', but we keep 'yum' for backward compatibility
ArtifactName: yum
# TODO: rpmbuild on Red Hat UBI 8 is slow for unknown reason. Still working with Red Hat to investigate.
# We use a separate job for Red Hat UBI 8 instead of strategy.matrix so that TestRpmPackage can start right after
# BuildRpmPackageCentOS7 finishes.
- job: BuildRpmPackageUbi8
displayName: Build Rpm Package Red Hat Universal Base Image 8
# Do not run this job for Pull Requests due to the slowness
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: Bash@3
displayName: 'Build Rpm Package'
inputs:
targetType: 'filePath'
filePath: scripts/release/rpm/pipeline.sh
env:
IMAGE: ubi8
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'SBOM'
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@0
displayName: 'Publish Artifact: rpm'
inputs:
TargetPath: $(Build.ArtifactStagingDirectory)
ArtifactName: rpm-ubi8

These RPMs depend on Python 3.6 which is deprecated and fail on the latest Fedora 35 (#22235) which doesn't have Python 3.6 by default.

Describe the solution you'd like

We should build RPM for Fedora. Actually we do have a dockerfile for Fedora - https://github.com/Azure/azure-cli/blob/dev/scripts/release/rpm/fedora.dockerfile, but this dockerfile has not been maintained for a long time.

@yonzhan
Copy link
Collaborator

yonzhan commented May 5, 2022

Fedora

@jiasli
Copy link
Member Author

jiasli commented Jun 14, 2022

According to https://docs.fedoraproject.org/en-US/releases/eol/, Fedora Linux 34 reached EOL on 2022-06-07. We should only build RPM for 35 and 36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants