-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Packaging] Use CentOS Stream 8 to build el8
RPM package
#20918
Merged
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
74c2205
el8
jiasli 521ceea
update
jiasli 756e664
Merge remote-tracking branch 'azure/dev' into el8
jiasli 36d3389
Add comment
jiasli ec44277
comment out docker save
jiasli 3ca5d20
Rename yum to rpm
jiasli 7b5a07e
Merge remote-tracking branch 'azure/dev' into el8
jiasli 340c4be
Do not use matrix
jiasli 0b6287c
Update azure-pipelines.yml
jiasli e88e373
Merge remote-tracking branch 'azure/dev' into el8
jiasli 7a6e98c
update
jiasli 5050e7e
Update test_rpm_in_docker.sh
jiasli 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 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
File renamed without changes.
This file contains 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,24 @@ | ||
ARG tag=stream8 | ||
|
||
FROM quay.io/centos/centos:${tag} AS build-env | ||
ARG cli_version=dev | ||
|
||
RUN yum update -y | ||
RUN yum install -y wget rpm-build gcc libffi-devel python3-devel openssl-devel make bash diffutils patch dos2unix python3-virtualenv perl | ||
|
||
WORKDIR /azure-cli | ||
|
||
COPY . . | ||
|
||
RUN dos2unix ./scripts/release/rpm/azure-cli.spec && \ | ||
REPO_PATH=$(pwd) CLI_VERSION=$cli_version rpmbuild -v -bb --clean scripts/release/rpm/azure-cli.spec && \ | ||
cp /root/rpmbuild/RPMS/x86_64/azure-cli-${cli_version}-1.*.x86_64.rpm /azure-cli-dev.rpm | ||
|
||
FROM quay.io/centos/centos:${tag} AS execution-env | ||
|
||
RUN yum update -y | ||
RUN yum install -y python3 python3-virtualenv | ||
|
||
COPY --from=build-env /azure-cli-dev.rpm ./ | ||
RUN rpm -i ./azure-cli-dev.rpm && \ | ||
az --version |
This file contains 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
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.
coreutils
is not compatible with preinstalledcoreutils-single
, so we don't need to installcoreutils
.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.
perl
is not installed byrpm-build
on CentOS Stream 8, so we should manually install it.