-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build on top of Andrew's change to bootstrap without docker
Address Snaipe's comments: - Elaborate on the description for bootstrap image - Compare checksums wrt to a file. - Combine bootstrap image generation sub images into a single one to avoid caching the same thing multiple times, the steps are fast. - Create mountpoints in the bootstrap image Additional changes: - CHECKSUM file, dnf/yum repo configuration and helper scripts are now checked in to the repo as opposed to autogenerated in the build step to make maintenance/upgrades easier and the barney.yaml a bit more readable. - Instead of downloading the tarball from the internet, download it from a stashed copy in a local artifactory repo.
- Loading branch information
1 parent
cae8c96
commit 80d98f1
Showing
5 changed files
with
115 additions
and
122 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,2 @@ | ||
c2a4f505ffa543fa46f9a077d201d54d8d94f431079b5e776c15cb200c03bb73 CentOS-Stream-Container-Base-9-20240715.0.x86_64.tar.xz | ||
af064c53839e2b54c7a42f7c6d1f4c4ed597e4ba6981ea90a1e6914278dfe855 CentOS-Stream-Container-Base-9-20240715.0.aarch64.tar.xz |
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,13 @@ | ||
# Uploading Bootstrap Tarball | ||
|
||
1. Download a CentOS-Stream-Container-Base tarball with a timestamp in its name, like `20230704`, from: | ||
- [https://cloud.centos.org/centos/9-stream/x86_64/images/](https://cloud.centos.org/centos/9-stream/x86_64/images/) | ||
- [https://cloud.centos.org/centos/9-stream/aarch64/images/](https://cloud.centos.org/centos/9-stream/aarch64/images/) | ||
2. Upload them to artifactory in the subpath `eext-sources/bootstrap/CentOS-Stream/` | ||
``` | ||
curl -H "Authorization: Bearer ${ARTIFACTORY_TOKEN}" -X PUT https://artifactory.infra.corp.arista.io/artifactory/eext-sources/bootstrap/CentOS-Stream/ -T <TARBALL_PATH> | ||
``` | ||
3. Update the `CHECKSUM` file in the local repo for the new entries from the `CHECKSUM` files: | ||
- [https://cloud.centos.org/centos/9-stream/x86_64/images/CHECKSUM](https://cloud.centos.org/centos/9-stream/x86_64/images/CHECKSUM) | ||
- [https://cloud.centos.org/centos/9-stream/aarch64/images/CHECKSUM](https://cloud.centos.org/centos/9-stream/aarch64/images/CHECKSUM) | ||
4. Update the `EEXT_BOOTSTRAP_VERSION` environment variable in `barney.yaml`. |
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,16 @@ | ||
[BaseOS] | ||
baseurl=${DNF_HOST}/${DNF_DISTRO_REPO}/${DNF_DISTRO_REPO_VERSION}/BaseOS/${ARCH}/os/ | ||
enabled=1 | ||
gpgkey=file:///usr/share/distribution-gpg-keys/alma9-b86b3716-gpg-pubkey.pem | ||
|
||
[AppStream] | ||
baseurl=${DNF_HOST}/${DNF_DISTRO_REPO}/${DNF_DISTRO_REPO_VERSION}/AppStream/${ARCH}/os/ | ||
exclude=podman | ||
enabled=1 | ||
gpgkey=file:///usr/share/distribution-gpg-keys/alma9-b86b3716-gpg-pubkey.pem | ||
|
||
[epel9-snapshot] | ||
baseurl=${DNF_HOST}/${DNF_EPEL_REPO}/${DNF_EPEL_REPO_SNAPSHOT_VERSION}/${DNF_EPEL_REPO_DISTRO_VERSION}/Everything/${ARCH}/ | ||
enabled=1 | ||
gpgkey=file:///usr/share/distribution-gpg-keys/epel9-3228467c-gpg-pubkey.pem | ||
|
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,7 @@ | ||
#!/bin/sh | ||
dnf --assumeyes --installroot=/dest --noplugins \ | ||
--config=/etc/dnf/dnf.conf \ | ||
--setopt=cachedir=/var/cache/dnf \ | ||
--setopt=reposdir=/etc/yum.repos.d \ | ||
--setopt=varsdir=/etc/dnf \ | ||
install "$@" |