Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silverblue bootc image #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/fedora-bootc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build image 'fedora-bootc'
on:
push:
branches:
- main
paths:
- 'fedora-bootc/*'
jobs:
build-image:
uses: ./.github/workflows/build-image.yml
with:
image_name: "fedora-bootc"
tags: unstable
publish: ${{ github.ref == 'refs/heads/main' }}
branch: main
14 changes: 14 additions & 0 deletions .github/workflows/nightly-update-f40.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Update f40 images
on:
schedule:
# Every day at 2:49 AM
- cron: "49 2 * * *"

jobs:
fedora-ci:
uses: ./.github/workflows/build-image.yml
with:
image_name: "fedora-ci"
tags: "40"
publish: true
branch: f40
22 changes: 22 additions & 0 deletions .github/workflows/nightly-update-f41.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update f41 images
on:
schedule:
# Every day at 2:49 AM
- cron: "49 2 * * *"

jobs:
fedora-ci:
uses: ./.github/workflows/build-image.yml
with:
image_name: "fedora-ci"
tags: '41'
publish: true
branch: f41

fedora-silverblue:
uses: ./.github/workflows/build-image.yml
with:
image_name: "fedora-silverblue"
tags: '41'
publish: true
branch: f41
31 changes: 31 additions & 0 deletions .github/workflows/nightly-update-unstable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update unstable images
on:
schedule:
# Every day at 2:49 AM
- cron: "49 2 * * *"

jobs:
fedora-ci:
uses: ./.github/workflows/build-image.yml
with:
image_name: "fedora-ci"
tags: unstable
publish: true
branch: main

fedora-bootc:
uses: ./.github/workflows/build-image.yml
with:
image_name: "fedora-bootc"
tags: unstable
publish: true
branch: main

fedora-silverblue:
uses: ./.github/workflows/build-image.yml
needs: fedora-bootc
with:
image_name: "fedora-silverblue"
tags: unstable
publish: true
branch: main
46 changes: 0 additions & 46 deletions .github/workflows/nightly-update.yml

This file was deleted.

10 changes: 10 additions & 0 deletions fedora-bootc/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM quay.io/fedora/fedora-bootc:41

COPY copr-sharpenedblade-t2linux.repo /etc/yum.repos.d/

RUN \
dnf swap -y \
--repo copr-sharpenedblade-t2linux --allowerasing \
kernel-core kernel-core && \
dnf install -y t2linux-release t2linux-repos && \
dnf clean all
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[copr:copr.fedorainfracloud.org:sharpenedblade:t2linux]
[copr-sharpenedblade-t2linux]
name=Copr repo for t2linux owned by sharpenedblade
baseurl=https://download.copr.fedorainfracloud.org/results/sharpenedblade/t2linux/fedora-$releasever-$basearch/
type=rpm-md
Expand Down
16 changes: 7 additions & 9 deletions fedora-silverblue/Containerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM quay.io/fedora/fedora-silverblue:41
FROM ghcr.io/t2linux/fedora-bootc:unstable

COPY copr-sharpenedblade-t2linux.repo /etc/yum.repos.d/

RUN rpm-ostree override replace --experimental --freeze \
--from repo="copr:copr.fedorainfracloud.org:sharpenedblade:t2linux" \
kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra && \
rpm-ostree install t2linux-repos t2linux-release && \
rpm-ostree install bootc dnf5 && \
ostree container commit
RUN \
dnf group install -y --exclude=rootfiles \
workstation-product-environment && \
dnf install -y aajohan-comfortaa-fonts && \
dnf remove -y python3-botocore && \
dnf clean all