forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to resolve RPM dependencies
Signed-off-by: Roman Mohr <rmohr@redhat.com>
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
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
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,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
source hack/common.sh | ||
source hack/config.sh | ||
|
||
basesystem="glibc-langpack-en coreutils-single libcurl-minimal curl-minimal" | ||
|
||
# get latest repo data from repo.yaml | ||
bazel run \ | ||
--config=${ARCHITECTURE} \ | ||
//:bazeldnf -- fetch | ||
|
||
# create a rpmtree for our test image with misc. tools. | ||
bazel run \ | ||
--config=${ARCHITECTURE} \ | ||
//:bazeldnf -- rpmtree --public --name testimage_x86_64 \ | ||
$basesystem \ | ||
qemu-img \ | ||
qemu-guest-agent \ | ||
stress \ | ||
dmidecode \ | ||
virt-what \ | ||
which \ | ||
nginx \ | ||
scsi-target-utils \ | ||
procps-ng \ | ||
nmap-ncat \ | ||
iputils \ | ||
e2fsprogs | ||
|
||
bazel run \ | ||
--config=${ARCHITECTURE} \ | ||
//:bazeldnf -- rpmtree --public --arch=ppc64le --name testimage_ppc64le \ | ||
$basesystem \ | ||
qemu-img \ | ||
qemu-guest-agent \ | ||
stress \ | ||
nginx \ | ||
scsi-target-utils \ | ||
procps-ng \ | ||
nmap-ncat \ | ||
iputils \ | ||
e2fsprogs | ||
|
||
# remove all RPMs which are no longer referenced by a rpmtree | ||
bazel run \ | ||
--config=${ARCHITECTURE} \ | ||
//:bazeldnf -- prune |