mirror of
https://github.com/andersrh/image-63245.git
synced 2026-05-17 14:18:01 +00:00
Compare commits
1 commit
main
...
custom-chr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
952fc1be36 |
8 changed files with 34 additions and 159 deletions
21
.github/workflows/cleanup.yml
vendored
21
.github/workflows/cleanup.yml
vendored
|
|
@ -1,21 +0,0 @@
|
|||
name: Ryd op i GHCR
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0' # Kører hver søndag ved midnat
|
||||
workflow_dispatch: # Gør det muligt at køre den manuelt
|
||||
|
||||
jobs:
|
||||
delete-old-images:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
steps:
|
||||
- name: Slet gamle versioner
|
||||
uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'image-63245' # Skift til dit image navn
|
||||
package-type: 'container'
|
||||
min-versions-to-keep: 50
|
||||
delete-only-untagged-versions: 'false'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
95
.github/workflows/image.yml
vendored
95
.github/workflows/image.yml
vendored
|
|
@ -1,95 +0,0 @@
|
|||
name: image
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 5 8,18,28 * *'
|
||||
push:
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'etc/**'
|
||||
- 'usr/**'
|
||||
- 'repo/**'
|
||||
- '.github/workflows/image.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
id-token: write # Påkrævet til cosign keyless signering
|
||||
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: AdityaGarg8/remove-unwanted-software@v5
|
||||
with:
|
||||
remove-dotnet: 'true'
|
||||
remove-android: 'true'
|
||||
remove-haskell: 'true'
|
||||
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
# Vi konstruerer tags her med branch-navnet som præfiks
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=raw,value=${{ github.ref_name }}-10
|
||||
type=raw,value=${{ github.ref_name }}-10.${{ steps.date.outputs.date }}
|
||||
|
||||
- name: Log into GHCR
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
buildah login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
|
||||
|
||||
- name: Build image with Buildah
|
||||
id: build-image
|
||||
run: |
|
||||
# Vi bygger med 'raw-img' lokalt
|
||||
buildah bud \
|
||||
--label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
|
||||
-t raw-img .
|
||||
|
||||
# Gem det primære tag til signering (vi tager det første fra listen)
|
||||
PRIMARY_TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n 1)
|
||||
echo "primary_tag=$PRIMARY_TAG" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Push to GHCR
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
for tag in $(echo "${{ steps.meta.outputs.tags }}"); do
|
||||
echo "Tagging and pushing: $tag"
|
||||
buildah tag raw-img "$tag"
|
||||
buildah push "$tag"
|
||||
done
|
||||
|
||||
- name: Install cosign
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: sigstore/cosign-installer@v3.3.0
|
||||
|
||||
# VI TILFØJER LOGIN TIL COSIGN HER
|
||||
- name: Log into GHCR (Cosign)
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
cosign login ${{ env.REGISTRY }} -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Sign image
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
# Vi signerer det primære tag.
|
||||
# Vi bruger --yes til at acceptere betingelserne automatisk.
|
||||
cosign sign --yes "${{ steps.build-image.outputs.primary_tag }}"
|
||||
|
|
@ -10,7 +10,7 @@ RUN dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/xlib
|
|||
|
||||
RUN dnf install sonic-workspace-x11 sonic-win sonic-interface-libraries sonic-workspace --allowerasing -y
|
||||
|
||||
RUN dnf install -y fish distrobox nvtop intel-media-driver libva-intel-driver htop firefox
|
||||
RUN dnf install -y fish distrobox nvtop intel-media-driver libva-intel-driver htop
|
||||
|
||||
# Remove plocate to avoid updatedb going crazy with scanning the file system once a day
|
||||
RUN dnf remove -y plocate
|
||||
|
|
@ -36,8 +36,7 @@ RUN dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docke
|
|||
RUN rm -f /usr/lib64/libopenh264.so.2.4.1 /usr/lib64/libopenh264.so.7
|
||||
RUN rpm -Uvh --nodeps https://codecs.fedoraproject.org/openh264/42/x86_64/Packages/o/openh264-2.5.1-1.fc42.x86_64.rpm https://codecs.fedoraproject.org/openh264/42/x86_64/Packages/m/mozilla-openh264-2.5.1-1.fc42.x86_64.rpm
|
||||
|
||||
RUN dnf install xlibre-xserver-Xorg xlibre-xserver-devel xinput meson gcc cmake libX11-devel libXext-devel libXft-devel libXinerama-devel xorg-x11-proto-devel libxshmfence-devel libxkbfile-devel libbsd-devel libXfont2-devel xkbcomp libfontenc-devel libXres-devel libXdmcp-devel dbus-devel systemd-devel libudev-devel libxcvt-devel libdrm-devel libXv-devel libseat-devel libXv-devel xkbcomp xkeyboard-config-devel mesa-libGL-devel mesa-libEGL-devel libepoxy-devel mesa-libgbm-devel libdrm-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel xcb-util-renderutil-devel openssl-devel libXau-devel libXdmcp-devel libSM-devel libICE-devel startup-notification-devel libgtop2-devel libepoxy-devel libgudev-devel libwnck3-devel.x86_64 libdisplay-info-devel.x86_64 libnotify-devel.x86_64 upower-devel.x86_64 iceauth libICE-devel libSM-devel libXpresent-devel libyaml-devel vte291-devel gtk3-devel xorg-x11-xinit xlibre-xf86-input-libinput-devel xlibre-xf86-input-libinput \
|
||||
libXScrnSaver-devel libxklavier-devel pam-devel gcc-c++ dbus-glib-devel libtool gettext-devel gstreamer1-devel sqlite-devel pavucontrol pulseaudio-libs-devel weston network-manager-applet -y
|
||||
RUN dnf install xlibre-xserver-Xorg xlibre-xf86-input-libinput xinput
|
||||
|
||||
# Install VLC
|
||||
RUN dnf install vlc vlc-plugins-freeworld vlc-plugin-pipewire -y
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
|
||||
# probably wise not to edit this file manually. Use localectl(1) to
|
||||
# update this file.
|
||||
Section "InputClass"
|
||||
Identifier "system-keyboard"
|
||||
MatchIsKeyboard "on"
|
||||
Option "XkbLayout" "dk"
|
||||
Option "XkbModel" "pc105"
|
||||
Option "XkbOptions" "terminate:ctrl_alt_bksp"
|
||||
EndSection
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
Section "Device"
|
||||
Identifier "Intel Graphics"
|
||||
Driver "modesetting"
|
||||
Option "ShadowFB" "false" # you don't need on recent hardware
|
||||
Option "Atomic" "true" #only effective on Xlibre, or Xorg-git with a special patch
|
||||
Option "TearFree" "false" # We will be using compositor, so TearFree (extra buffer) in the driver is not necessary
|
||||
EndSection
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
Section "InputClass"
|
||||
Identifier "Touchpad Tap"
|
||||
# Matcher alle touchpads der bruger libinput
|
||||
MatchIsTouchpad "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "libinput"
|
||||
|
||||
# Korrigerer hastigheden til 2x (til 4K / 200% skalering)
|
||||
#Option "TransformationMatrix" "5 0 0 0 5 0 0 0 2"
|
||||
|
||||
# Bruger den ergonomiske 'adaptive' profil (1 0 er Adaptive)
|
||||
#Option "AccelProfile" "adaptive"
|
||||
|
||||
# Holder grundhastigheden neutral (0.0)
|
||||
#Option "AccelSpeed" "0"
|
||||
|
||||
# Valgfrit: Slå tap-to-click til, hvis du foretrækker det
|
||||
Option "Tapping" "on"
|
||||
EndSection
|
||||
31
etc/chromium/chromium.conf
Normal file
31
etc/chromium/chromium.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
CHROMIUM_FLAGS="--use-cmd-decoder=passthrough
|
||||
--enable-features=VaapiIgnoreDriverChecks,VaapiLowPowerEncoderGen9x,Vp9kSVCHWDecoding,VaapiVp9kSVCHWEncoding,DesktopScreenshots,SharingDesktopScreenshotsEdit,WebUIDarkMode,PlatformHEVCDecoderSupport,PlatformHEVCEncoderSupport,PartialRaster,CanvasOopRasterization,AcceleratedVideoDecoder,AcceleratedVideoEncoder,AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,UseMultiPlaneFormatForHardwareVideo,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE
|
||||
--ignore-gpu-blocklist
|
||||
--disable-gpu-driver-bug-workaround
|
||||
--disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled --oauth2-client-id=77185425430.apps.googleusercontent.com --oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
|
||||
--disk-cache-dir=/run/user/1000/chromium-cache
|
||||
--disk-cache-size=419430400
|
||||
--enable-chrome-browser-cloud-management
|
||||
--show-component-extension-options
|
||||
--enable-gpu-rasterization
|
||||
--media-router=0
|
||||
--enable-remote-extensions
|
||||
--video-capture-use-gpu-memory-buffer
|
||||
--enable-video-player-chromecast-support
|
||||
--enable-pixel-canvas-recording
|
||||
--enable-native-gpu-memory-buffers
|
||||
--enable-zero-copy
|
||||
--enable-partial-raster
|
||||
--enable-parallel-downloading
|
||||
--enable-quic
|
||||
--enable-lazy-image-loading
|
||||
--enable-lcd-text
|
||||
--enable-oop-rasterization
|
||||
--canvas-oop-rasterization
|
||||
--enable-gpu-compositing
|
||||
--enable-accelerated-mjpeg-decode
|
||||
--enable-font-antialiasing
|
||||
--enable-accelerated-2d-canvas
|
||||
--enable-gpu-memory-buffer-video-frames
|
||||
--enable-gpu-memory-buffer-compositor-resources
|
||||
--enable-hardware-overlays"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[Daemon]
|
||||
Autolock=false[$i]
|
||||
LockOnResume=false[$i]
|
||||
Loading…
Add table
Add a link
Reference in a new issue