forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI:BUILD] Podman FCOS image from main
Fixes: containers#19446, containers#19447, containers#19448 [NO NEW TESTS NEEDED] Co-authored-by: Chris Evich <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
7 changed files
with
109 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,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script handles any custom processing of the spec file using the `fix-spec-file` | ||
# action in .packit.yaml. | ||
|
||
set -eox pipefail | ||
|
||
PACKAGE=podman | ||
|
||
# Set path to rpm spec file | ||
SPEC_FILE=rpm/$PACKAGE.spec | ||
|
||
# Get Version from HEAD | ||
VERSION=$(grep '^const RawVersion' version/rawversion/version.go | cut -d\" -f2) | ||
|
||
# RPM Version can't take "-" | ||
RPM_VERSION=$(echo $VERSION | sed -e 's/-/~/') | ||
|
||
# Generate source tarball from HEAD | ||
git-archive-all -C $(git rev-parse --show-toplevel) --prefix=$PACKAGE-$VERSION/ rpm/$PACKAGE-$VERSION.tar.gz | ||
|
||
# RPM Spec modifications | ||
|
||
# Use the Version from HEAD in rpm spec | ||
sed -i "s/^Version:.*/Version: $RPM_VERSION/" $SPEC_FILE | ||
|
||
# Use Packit's supplied variable in the Release field in rpm spec. | ||
sed -i "s/^Release:.*/Release: $PACKIT_RPMSPEC_RELEASE%{?dist}/" $SPEC_FILE | ||
|
||
# Ensure last part of the release string is the git shortcommit without a | ||
# prepended "g" | ||
sed -i "/^Release: $PACKIT_RPMSPEC_RELEASE%{?dist}/ s/\(.*\)g/\1/" $SPEC_FILE | ||
|
||
# Use above generated tarball as Source in rpm spec | ||
sed -i "s/^Source0:.*.tar.gz/Source0: $PACKAGE-$VERSION.tar.gz/" $SPEC_FILE | ||
|
||
# Update setup macro to use the correct build dir | ||
sed -i "s/^%autosetup.*/%autosetup -Sgit -n %{name}-$VERSION/" $SPEC_FILE |
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
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 @@ | ||
FROM quay.io/fedora/fedora-coreos:stable | ||
|
||
# Setup the podman-next copr repo | ||
# Note: This might need to be updated from time to time to the latest GPG key. | ||
# The repo config itself is release agnotic but the GPG key might change. | ||
COPY rhcontainerbot-podman-next-fedora.repo /etc/yum.repos.d/ | ||
COPY rhcontainerbot-podman-next-fedora.gpg /etc/pki/rpm-gpg/ | ||
|
||
# Replace aardvark-dns, conmon, crun, netavark, podman, containers-common | ||
# Remove moby-engine, containerd, runc | ||
# Note: Currently does not result in a size reduction for the container image | ||
RUN rpm-ostree override replace --experimental --freeze \ | ||
--from repo="copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next" \ | ||
aardvark-dns crun netavark podman containers-common containers-common-extra && \ | ||
rpm-ostree override remove moby-engine containerd runc && \ | ||
ostree container commit |
19 changes: 19 additions & 0 deletions
19
contrib/podman-next/fcos-podmanimage/rhcontainerbot-podman-next-fedora.gpg
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,19 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mQENBGGpQ8EBCAC3a5QD6FsFzFPVsNDrIXNXz/yDOdh0PdUat6Fma26pB2ivar1K | ||
H03VrB8/zEmiM7qjgnR/Z3h0b6jkiOiqR39/+hQVKm2Hs222cnC8Tcj36FASpHDq | ||
GxVVceqs/9zMc1oJTcCkgfrLtOxsQxsLcln43z9e5TF/oSkFFoyhCtCyl8SBWrzb | ||
qk7ihoZVA/zn+CjyauniUwN+ezTSJj821AfeymF9mNzkqkh9HcPr2aze+0Mct/FV | ||
eUXfGJ2LQufvhgNHu/eg958Oz2mBJS2JUxDjoQSAYYXzWSmTTQ4ft2+aA9rlg16E | ||
88G1HnRsYXqail7UQM9Bspqnq5cd+JehEgodABEBAAG0VHJoY29udGFpbmVyYm90 | ||
X3BvZG1hbi1uZXh0IChOb25lKSA8cmhjb250YWluZXJib3QjcG9kbWFuLW5leHRA | ||
Y29wci5mZWRvcmFob3N0ZWQub3JnPokBWAQTAQgAQhYhBEk3txShalNb9LOwGI5U | ||
Q5nYfes5BQJhqUPBAhsvBQkJZgGABQsJCAcCAyICAQYVCgkICwIEFgIDAQIeBwIX | ||
gAAKCRCOVEOZ2H3rOfdcB/4irNK45SoOjhMZpub+UjxqB6t7SSj1LucJVNJhLG7c | ||
80nTapczhoghk8zN5txdnPGKbwOzfYReB9NEb7w231yVu+JhIU/5kY2UTS3QA/uN | ||
UG0BBPZ+0yRuOYK4A/mX5BCceTzBkwRkPG7AM0tT7G5tJBt1Z6sQJMfj2drUKutn | ||
+x1wJDsK4Ga0rDlpXsn81aQ7gZAUKiUiKXbujGDLyjPYwvKkjNA74CgAqz60RlXJ | ||
/LtcbS2pQV1ZuIpaHXyO+82IOmVJmXNL1YNfni5M60f+3/A9pyiiw3c1C+iho77N | ||
SfsgYLo0HKX7m1i4Q181F+RhSRgKmWP9PVRJ1H0xhDNO | ||
=P6WX | ||
-----END PGP PUBLIC KEY BLOCK----- |
10 changes: 10 additions & 0 deletions
10
contrib/podman-next/fcos-podmanimage/rhcontainerbot-podman-next-fedora.repo
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,10 @@ | ||
[copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next] | ||
name=Copr repo for podman-next owned by rhcontainerbot | ||
baseurl=https://download.copr.fedorainfracloud.org/results/rhcontainerbot/podman-next/fedora-$releasever-$basearch/ | ||
type=rpm-md | ||
skip_if_unavailable=True | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/rhcontainerbot-podman-next-fedora.gpg | ||
repo_gpgcheck=0 | ||
enabled=1 | ||
enabled_metadata=1 |