-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add helper script for running the ostree build.
- Loading branch information
1 parent
9bc27fe
commit 6d91264
Showing
11 changed files
with
395 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: build | ||
on: | ||
schedule: | ||
- cron: 0 2 * * 6 | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
timeout-minutes: 40 | ||
container: | ||
image: docker.io/fedora:latest | ||
# Fix SELinux for the built OSTree: https://github.com/coreos/rpm-ostree/issues/1943 | ||
options: --privileged --security-opt label:disable | ||
steps: | ||
- name: Install dependencies | ||
run: dnf install -y rpm-ostree selinux-policy selinux-policy-targeted policycoreutils podman overlayfs-tools fuse-overlayfs | ||
|
||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log into container registry | ||
run: podman login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io | ||
|
||
- name: Build OSTree and push it to registry | ||
run: ./compose.sh registry |
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,25 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIENDCCAxygAwIBAgIJANunI0D662cnMA0GCSqGSIb3DQEBCwUAMIGlMQswCQYD | ||
VQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1JhbGVp | ||
Z2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xEzARBgNVBAsMClJlZCBIYXQgSVQx | ||
G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p3e5JyIMfW+KFcNIpKwCsak | ||
oSoKtIUOsUJK7qBVZxcrIyeQV2qcYOeZhtS5wBqIwOAhFwlCET7Ze58QHmS48slj | ||
S9K0JAcps2xdnGu0fkzhSQxY8GPQNFTlr6rYld5+ID/hHeS76gq0YG3q6RLWRkHf | ||
4eTkRjivAlExrFzKcljC4axKQlnOvVAzz+Gm32U0xPBF4ByePVxCJUHw1TsyTmel | ||
RxNEp7yHoXcwn+fXna+t5JWh1gxUZty3 | ||
-----END CERTIFICATE----- |
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,37 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIGXjCCBEagAwIBAgIEeIXl3TANBgkqhkiG9w0BAQwFADCBozELMAkGA1UEBhMC | ||
VVMxFzAVBgNVBAgMDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHDAdSYWxlaWdoMRYw | ||
FAYDVQQKDA1SZWQgSGF0LCBJbmMuMRMwEQYDVQQLDApSZWQgSGF0IElUMRkwFwYD | ||
VQQDDBBJbnRlcm5hbCBSb290IENBMSEwHwYJKoZIhvcNAQkBFhJpbmZvc2VjQHJl | ||
ZGhhdC5jb20wIBcNMjIwNDEwMTMxNzE4WhgPMjA1MjA0MDIxMzE3MThaMIGjMQsw | ||
CQYDVQQGEwJVUzEXMBUGA1UECAwOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcMB1Jh | ||
bGVpZ2gxFjAUBgNVBAoMDVJlZCBIYXQsIEluYy4xEzARBgNVBAsMClJlZCBIYXQg | ||
SVQxGTAXBgNVBAMMEEludGVybmFsIFJvb3QgQ0ExITAfBgkqhkiG9w0BCQEWEmlu | ||
Zm9zZWNAcmVkaGF0LmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB | ||
ALG6WgRWCXNZdn0UUVQ5JV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Q+mr+nizbGCeRjnk1rAI9s9P/ho/uRq06l9upEJvgIotOb9+KY1ljBxstl00Egb | ||
4B+gjR6wDHwaHb9wKgNB7xgSRBqwJ84eLtK1UoXtYpVTDe9nHiqzVb9JfYA8rscM | ||
quPqLXeqKDJ/SP72vlM3BocY6HqQ7l9kV8Bbk0BmnBwHTPe1uiuiW61oRYT0dv8L | ||
RLoswGZGSar14HId8tZ3EGTNfGvrTkhBI6bjjSGs+0MDcv6ARAZF0JSH6YWTRRGK | ||
oGV5x2vE6zPXvaejzNzN5aTK9qspOK4QM/bM+DFxl3HvKWsm5urJZnCCrf+pSRC2 | ||
crzoBtmKR6TQIzYbMSu6jfc8xOKCR30LJ+wlZ/LuEZmroSp5xc6Ixeg5FV6w4h4m | ||
eNlQFU9n5AJyCG3ThQBhahfK4vtOtjYZXrtJ5VFaMlG26xzavVDRppYp3taLtiNi | ||
qChV/dbSdc7HqYQOnDglUF5mRiu78uZ9+fl5OgE4PjHVG/exyqi6OQZeujPzBXL7 | ||
gZ1WEVt+fV8FWaH/NaEvVu5EFhISI/2dM+y/nuRQ4n2IwauEAWCQ+o6Qdq8TXytp | ||
70A= | ||
-----END CERTIFICATE----- |
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,21 @@ | ||
#!/bin/sh | ||
set -eu | ||
CACHE=/var/cache/ostree | ||
REPO=/var/tmp/repo | ||
# default to storing locally; can also be "registry:" to directly push | ||
SKOPEO_TARGET="${1:-containers-storage}" | ||
|
||
mkdir -p $CACHE | ||
|
||
if [ ! -d $REPO/objects ]; then | ||
ostree --repo=$REPO init --mode=archive-z2 | ||
fi | ||
|
||
rpm-ostree compose tree --unified-core --cachedir=$CACHE --repo=$REPO pitti-desktop.yaml | ||
# HACK: networking in GitHub is a bit flaky, retry a few times | ||
for retry in $(seq 3); do | ||
rpm-ostree compose container-encapsulate --repo=$REPO pitti-desktop ${SKOPEO_TARGET}:ghcr.io/martinpitt/workstation-ostree-config:latest && exit 0 | ||
[ "$SKOPEO_TARGET" = registry ] || break | ||
sleep 30 | ||
done | ||
exit 1 |
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,9 @@ | ||
[fedora-cisco-openh264] | ||
name=Fedora 41 openh264 (From Cisco) - $basearch | ||
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-41&arch=$basearch | ||
type=rpm | ||
enabled=1 | ||
metadata_expire=14d | ||
repo_gpgcheck=0 | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-41-$basearch |
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,154 @@ | ||
variables: | ||
bootable_container: false | ||
|
||
include: common.yaml | ||
|
||
ref: pitti-desktop | ||
rojig: | ||
name: pitti-desktop | ||
summary: "Pitti Desktop" | ||
license: MIT | ||
|
||
repos: | ||
- fedora-41 | ||
- fedora-41-updates | ||
- fedora-cisco-openh264 | ||
- rpmfusion-free | ||
- rpmfusion-free-updates | ||
|
||
packages: | ||
# hardware/drivers | ||
- kernel | ||
- kernel-modules-extra | ||
- iwlwifi-mvm-firmware | ||
- alsa-sof-firmware | ||
- NetworkManager-wifi | ||
- NetworkManager-openvpn-gnome | ||
- powertop | ||
- wpa_supplicant | ||
- bluez | ||
- bluez-tools | ||
# basic system | ||
- acl | ||
- attr | ||
- basesystem | ||
- cryptsetup | ||
- dnsmasq | ||
- fedora-workstation-backgrounds | ||
- filesystem | ||
- glibc-langpack-de | ||
- glibc-langpack-en | ||
- hostname | ||
- iproute | ||
- kbd | ||
- nss-altfiles | ||
- pciutils | ||
- rpm-ostree | ||
# don't care, but rpm-ostree build fails otherwise | ||
- selinux-policy-targeted | ||
- sudo | ||
- usbutils | ||
# shell tools and development | ||
- bash-completion | ||
- bc | ||
- bzip2 | ||
# authenticate to gmail | ||
- cyrus-sasl-plain | ||
- fpaste | ||
- git | ||
- gnupg2 | ||
- isync | ||
- krb5-workstation | ||
- lsof | ||
- man-db | ||
- mtr | ||
- mutt | ||
- neovim | ||
- nmap-ncat | ||
- openssh-server | ||
- openvpn | ||
- podman | ||
- restic | ||
- rsync | ||
- strace | ||
- syncthing | ||
- systemd-container | ||
- toolbox | ||
- tree | ||
- w3m | ||
- weechat | ||
- wget | ||
|
||
# desktop plumbing/apps | ||
- dejavu-sans-fonts | ||
- dejavu-serif-fonts | ||
- dejavu-sans-mono-fonts | ||
- fontawesome-fonts | ||
- google-noto-emoji-color-fonts | ||
|
||
- gvfs-mtp | ||
- pulseaudio-utils | ||
- alsa-plugins-pulseaudio | ||
- gstreamer1-plugins-good | ||
- gstreamer1-plugins-bad-free | ||
- gstreamer1-plugin-openh264 | ||
- gstreamer1-libav | ||
# for wf-recorder | ||
- libavdevice | ||
- xdg-desktop-portal-gtk | ||
|
||
- pavucontrol | ||
- pcmanfm | ||
- nm-connection-editor | ||
- blueman | ||
- eog | ||
- evince | ||
- rhythmbox | ||
- gnome-keyring | ||
- pinentry-gnome3 | ||
- mate-polkit | ||
- lxterminal | ||
- gnome-disk-utility | ||
- rofimoji | ||
|
||
# sway/wayland desktop | ||
- sway | ||
- swayidle | ||
- swaylock | ||
- kanshi | ||
- mako | ||
- waybar | ||
- slurp | ||
- grim | ||
- xorg-x11-server-Xwayland | ||
- firefox | ||
- wofi | ||
- brightnessctl | ||
- wl-clipboard | ||
|
||
exclude-packages: | ||
# recommended by sway | ||
- alacritty | ||
- brltty | ||
- glibc-all-langpacks | ||
# recommended by gtk3 | ||
- tracker | ||
- tracker-miners | ||
# recommended by toolbox | ||
- subscription-manager | ||
# recommended by udisks | ||
- exfatprogs | ||
- f2fs-tools | ||
- btrfs-progs | ||
- nilfs-utils | ||
- udftools | ||
# does not work | ||
- xdg-desktop-portal-wlr | ||
# recommended by containers-common-extra | ||
- qemu-user-static | ||
|
||
add-files: | ||
- ["2015-RH-IT-Root-CA.pem", "/etc/pki/ca-trust/source/anchors/2015-RH-IT-Root-CA.pem"] | ||
- ["2022-RH-IT-Root-CA.pem", "/etc/pki/ca-trust/source/anchors/2022-RH-IT-Root-CA.pem"] | ||
|
||
postprocess-script: pitti-post.sh |
Oops, something went wrong.