Skip to content

Commit

Permalink
Merge pull request #21 from travier/main-cockpit
Browse files Browse the repository at this point in the history
cockpit: Add initial sysext
  • Loading branch information
travier authored Nov 21, 2024
2 parents 18a3693 + 9224669 commit 13703d1
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/containers-fedora-coreos-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ jobs:
--from
${{ env.IMAGE }}:${{ env.RELEASE }}

- name: "Build container: cockpit"
uses: redhat-actions/buildah-build@v2
with:
context: 'cockpit'
image: ${{ env.DESTINATION }}
tags: ${{ env.RELEASE }}.cockpit
containerfiles: 'cockpit/Containerfile'
layers: false
oci: true
extra-args:
--from
${{ env.IMAGE }}:${{ env.RELEASE }}

- name: "Build container: compsize"
uses: redhat-actions/buildah-build@v2
with:
Expand Down Expand Up @@ -313,6 +326,25 @@ jobs:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}

- name: "Push container: cockpit"
uses: redhat-actions/push-to-registry@v2
id: push-cockpit
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
with:
username: ${{ secrets.BOT_USERNAME }}
password: ${{ secrets.BOT_SECRET }}
image: ${{ env.DESTINATION }}
registry: ${{ env.REGISTRY }}
tags: ${{ env.RELEASE }}.cockpit

- name: "Sign container: cockpit"
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY }}/${{ env.DESTINATION }}@${{ steps.push-cockpit.outputs.digest }}
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}

- name: "Push container: compsize"
uses: redhat-actions/push-to-registry@v2
id: push-compsize
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sysexts-fedora-coreos-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ jobs:
just build ${IMAGE}
mv "${SYSEXT}"*".raw" "../artifacts/"
- name: "Build sysext: cockpit"
env:
SYSEXT: cockpit
run: |
cd "${SYSEXT}"
just build ${IMAGE}
mv "${SYSEXT}"*".raw" "../artifacts/"
- name: "Build sysext: compsize"
env:
SYSEXT: compsize
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ included.
|-|-|
| btop | `btop` and `rocm-smi` dependency for AMD GPU support |
| chromium | Alternative to the Flatpak which has known issues |
| cockpit | (work in progress) |
| compsize | |
| distrobox | |
| fuse2 | The `fuse` tools and library, version 2, for AppImage compatibility |
Expand Down
12 changes: 12 additions & 0 deletions cockpit/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM baseimage

RUN dnf install -y \
cockpit-files \
cockpit-networkmanager \
cockpit-ostree \
cockpit-podman \
cockpit-storaged \
cockpit-system \
cockpit-ws \
&& \
dnf clean all
18 changes: 18 additions & 0 deletions cockpit/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name := "cockpit"
packages := "
cockpit-files
cockpit-networkmanager
cockpit-ostree
cockpit-podman
cockpit-selinux
cockpit-storaged
cockpit-system
cockpit-ws
"
base_images := "
quay.io/fedora/fedora-coreos:next
"

import '../sysext.just'

all: default

0 comments on commit 13703d1

Please sign in to comment.