-
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.
improve build script for readability and change fedora-minimal to fed…
…ora image to reduce build time from package installation
- Loading branch information
Guillaume
committed
Oct 2, 2024
1 parent
1080eb9
commit f1845e3
Showing
3 changed files
with
25 additions
and
33 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
|
||
readonly BASE_IMAGE="quay.io/fedora/fedora-minimal" | ||
readonly BASE_IMAGE="quay.io/fedora/fedora" | ||
|
||
for FEDORA_MAJOR_VERSION in $(seq 40 41); do | ||
podman run -it --rm -v ./scripts:/tmp/scripts:z -v ./rpms:/tmp/nvidia-drv/rpmbuild/RPMS:z ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} bash -c "/tmp/scripts/build-nvidia-drv.sh" | ||
podman run -it --rm --env FORCE_BUILD=true -v ./scripts:/tmp/scripts:z -v ./rpms:/tmp/nvidia-drv/rpmbuild/RPMS:z ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} bash -c "/tmp/scripts/build-nvidia-drv.sh" | ||
ls -la ./rpms/x86_64 | ||
done |
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