-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from cevich/netavark
Add fedora-netavark VM image
- Loading branch information
Showing
4 changed files
with
103 additions
and
18 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,65 @@ | ||
#!/bin/bash | ||
|
||
# This script is called from fedora_setup.sh and various Dockerfiles. | ||
# It's not intended to be used outside of those contexts. It assumes the lib.sh | ||
# library has already been sourced, and that all "ground-up" package-related activity | ||
# needs to be done, including repository setup and initial update. | ||
|
||
set -e | ||
|
||
SCRIPT_FILEPATH=$(realpath "${BASH_SOURCE[0]}") | ||
SCRIPT_DIRPATH=$(dirname "$SCRIPT_FILEPATH") | ||
REPO_DIRPATH=$(realpath "$SCRIPT_DIRPATH/../") | ||
|
||
# shellcheck source=./lib.sh | ||
source "$REPO_DIRPATH/lib.sh" | ||
|
||
msg "Updating/Installing repos and packages for $OS_REL_VER" | ||
|
||
bigto ooe.sh $SUDO dnf update -y | ||
|
||
INSTALL_PACKAGES=(\ | ||
bats | ||
bridge-utils | ||
bzip2 | ||
cargo | ||
clippy | ||
curl | ||
dbus-daemon | ||
findutils | ||
firewalld | ||
git | ||
gzip | ||
hostname | ||
iproute | ||
iptables | ||
iputils | ||
jq | ||
kernel-modules | ||
make | ||
nftables | ||
nmap-ncat | ||
openssl | ||
openssl-devel | ||
policycoreutils | ||
redhat-rpm-config | ||
rpm-build | ||
rsync | ||
rust | ||
rustfmt | ||
sed | ||
tar | ||
time | ||
xz | ||
zip | ||
) | ||
|
||
msg "Installing general build/test dependencies" | ||
bigto $SUDO dnf install -y "${INSTALL_PACKAGES[@]}" | ||
|
||
msg "Installing netavark-specific toolchain dependencies" | ||
export CARGO_HOME="/var/cache/cargo" # must match .cirrus.yml in netavark repo | ||
$SUDO env CARGO_HOME=$CARGO_HOME cargo install mandown sccache | ||
|
||
# It was observed in F33, dnf install doesn't always get you the latest/greatest | ||
lilto $SUDO dnf update -y |
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