clean up from old fedora image
This commit is contained in:
parent
fd89f63318
commit
d5fbabd614
30 changed files with 1 additions and 686 deletions
133
.github/workflows/fedora-toolbox-general.yml
vendored
133
.github/workflows/fedora-toolbox-general.yml
vendored
|
|
@ -1,133 +0,0 @@
|
|||
name: fedora-toolbox-general
|
||||
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
|
||||
on:
|
||||
# schedule:
|
||||
# - cron: '0 6 * * 6' # 6 am on Saturdays
|
||||
push:
|
||||
paths:
|
||||
- 'containers/fedora-toolbox/general/Dockerfile'
|
||||
|
||||
env:
|
||||
# Use docker.io for Docker Hub if empty
|
||||
REGISTRY: ghcr.io
|
||||
# github.repository as <account>/<repo>
|
||||
IMAGE_NAME: ${{ github.repository_owner }}/containers/fedora-toolbox/general
|
||||
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
# This is used to complete the identity challenge
|
||||
# with sigstore/fulcio when running outside of PRs.
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: AdityaGarg8/remove-unwanted-software@v1
|
||||
with:
|
||||
remove-dotnet: 'true'
|
||||
remove-android: 'true'
|
||||
remove-haskell: 'true'
|
||||
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d')"
|
||||
|
||||
- name: Test with environment variables
|
||||
run: echo $DATE
|
||||
env:
|
||||
DATE: ${{ steps.date.outputs.date }}
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Install the cosign tool except on PR
|
||||
# https://github.com/sigstore/cosign-installer
|
||||
- name: Install cosign
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
|
||||
with:
|
||||
cosign-release: 'v2.1.1'
|
||||
|
||||
# Login against a Docker registry except on PR
|
||||
# https://github.com/docker/login-action
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Extract metadata (tags, labels) for Docker
|
||||
# https://github.com/docker/metadata-action
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
|
||||
# Build image using Buildah action
|
||||
- name: Build Image
|
||||
id: build_image
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
containerfiles: |
|
||||
./containers/fedora-toolbox/general/Dockerfile
|
||||
image: ${{ env.IMAGE_NAME }}
|
||||
tags: ${{ steps.meta.outputs.tags }} ${{ steps.meta.outputs.tags }}.${{ steps.date.outputs.date }}
|
||||
oci: false
|
||||
layers: false
|
||||
|
||||
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
|
||||
# https://github.com/macbre/push-to-ghcr/issues/12
|
||||
- name: Lowercase Registry
|
||||
id: registry_case
|
||||
uses: ASzc/change-string-case-action@v5
|
||||
with:
|
||||
string: ${{ env.IMAGE_REGISTRY }}
|
||||
|
||||
# Push the image to GHCR (Image Registry)
|
||||
- name: Push To GHCR
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
id: push
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
REGISTRY_USER: ${{ github.actor }}
|
||||
REGISTRY_PASSWORD: ${{ github.token }}
|
||||
with:
|
||||
image: ${{ steps.build_image.outputs.image }}
|
||||
tags: ${{ steps.build_image.outputs.tags }}
|
||||
registry: ${{ steps.registry_case.outputs.lowercase }}
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
extra-args: |
|
||||
--disable-content-trust
|
||||
|
||||
|
||||
|
||||
# Sign the resulting Docker image digest except on PRs.
|
||||
# This will only write to the public Rekor transparency log when the Docker
|
||||
# repository is public to avoid leaking data. If you would like to publish
|
||||
# transparency data even for private images, pass --force to cosign below.
|
||||
# https://github.com/sigstore/cosign
|
||||
- name: Sign the published Docker image
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
env:
|
||||
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
|
||||
TAGS: ${{ steps.meta.outputs.tags }}
|
||||
DIGEST: ${{ steps.push.outputs.digest }}
|
||||
# This step uses the identity token to provision an ephemeral certificate
|
||||
# against the sigstore community Fulcio instance.
|
||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||
133
.github/workflows/fedora-toolbox.yml
vendored
133
.github/workflows/fedora-toolbox.yml
vendored
|
|
@ -1,133 +0,0 @@
|
|||
name: fedora-toolbox
|
||||
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
|
||||
on:
|
||||
# schedule:
|
||||
# - cron: '0 5 * * 6' # 5 am on Saturdays
|
||||
push:
|
||||
paths:
|
||||
- 'containers/fedora-toolbox/base-gui.Dockerfile'
|
||||
|
||||
env:
|
||||
# Use docker.io for Docker Hub if empty
|
||||
REGISTRY: ghcr.io
|
||||
# github.repository as <account>/<repo>
|
||||
IMAGE_NAME: ${{ github.repository_owner }}/containers/fedora-toolbox/base-gui
|
||||
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
# This is used to complete the identity challenge
|
||||
# with sigstore/fulcio when running outside of PRs.
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: AdityaGarg8/remove-unwanted-software@v1
|
||||
with:
|
||||
remove-dotnet: 'true'
|
||||
remove-android: 'true'
|
||||
remove-haskell: 'true'
|
||||
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d')"
|
||||
|
||||
- name: Test with environment variables
|
||||
run: echo $DATE
|
||||
env:
|
||||
DATE: ${{ steps.date.outputs.date }}
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Install the cosign tool except on PR
|
||||
# https://github.com/sigstore/cosign-installer
|
||||
- name: Install cosign
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
|
||||
with:
|
||||
cosign-release: 'v2.1.1'
|
||||
|
||||
# Login against a Docker registry except on PR
|
||||
# https://github.com/docker/login-action
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Extract metadata (tags, labels) for Docker
|
||||
# https://github.com/docker/metadata-action
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
|
||||
# Build image using Buildah action
|
||||
- name: Build Image
|
||||
id: build_image
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
containerfiles: |
|
||||
./containers/fedora-toolbox/base-gui.Dockerfile
|
||||
image: ${{ env.IMAGE_NAME }}
|
||||
tags: ${{ steps.meta.outputs.tags }} ${{ steps.meta.outputs.tags }}.${{ steps.date.outputs.date }}
|
||||
oci: false
|
||||
layers: false
|
||||
|
||||
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
|
||||
# https://github.com/macbre/push-to-ghcr/issues/12
|
||||
- name: Lowercase Registry
|
||||
id: registry_case
|
||||
uses: ASzc/change-string-case-action@v5
|
||||
with:
|
||||
string: ${{ env.IMAGE_REGISTRY }}
|
||||
|
||||
# Push the image to GHCR (Image Registry)
|
||||
- name: Push To GHCR
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
id: push
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
REGISTRY_USER: ${{ github.actor }}
|
||||
REGISTRY_PASSWORD: ${{ github.token }}
|
||||
with:
|
||||
image: ${{ steps.build_image.outputs.image }}
|
||||
tags: ${{ steps.build_image.outputs.tags }}
|
||||
registry: ${{ steps.registry_case.outputs.lowercase }}
|
||||
username: ${{ env.REGISTRY_USER }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
extra-args: |
|
||||
--disable-content-trust
|
||||
|
||||
|
||||
|
||||
# Sign the resulting Docker image digest except on PRs.
|
||||
# This will only write to the public Rekor transparency log when the Docker
|
||||
# repository is public to avoid leaking data. If you would like to publish
|
||||
# transparency data even for private images, pass --force to cosign below.
|
||||
# https://github.com/sigstore/cosign
|
||||
- name: Sign the published Docker image
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
env:
|
||||
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
|
||||
TAGS: ${{ steps.meta.outputs.tags }}
|
||||
DIGEST: ${{ steps.push.outputs.digest }}
|
||||
# This step uses the identity token to provision an ephemeral certificate
|
||||
# against the sigstore community Fulcio instance.
|
||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||
|
|
@ -1,175 +0,0 @@
|
|||
FROM fedora:41 AS akmods-builder
|
||||
|
||||
ARG KERNEL=kernel-cachyos-lto-skylake
|
||||
ENV KERNEL=${KERNEL}
|
||||
|
||||
# Get list of kernels from CachyOS LTO repo. If the list has been updated, then akmods will be rebuilt. If it hasn't been updated, then caching of the previous build will be used.
|
||||
ADD "https://copr.fedorainfracloud.org/api_3/build/list?ownername=andersrh&projectname=my-ostree-os&packagename=kernel-cachyos-lto-skylake" /tmp/builds.txt
|
||||
|
||||
# Install necessary tools to build kernel modules
|
||||
RUN dnf -y update && dnf -y install wget clang polly
|
||||
|
||||
RUN dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
|
||||
# Update cachebust in case a rebuild is required without usage of cache.
|
||||
ARG CACHEBUST=11
|
||||
|
||||
RUN cd /etc/yum.repos.d/ && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-lto/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-lto-fedora-$(rpm -E %fedora).repo && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/andersrh/kernel-cachyos/repo/fedora-$(rpm -E %fedora)/andersrh-kernel-cachyos-fedora-$(rpm -E %fedora).repo && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/andersrh/my-ostree-os/repo/fedora-$(rpm -E %fedora)/andersrh-my-ostree-os-fedora-$(rpm -E %fedora).repo && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo && \
|
||||
wget https://negativo17.org/repos/fedora-nvidia.repo && \
|
||||
cd /tmp
|
||||
|
||||
RUN dnf -y install ${KERNEL} ${KERNEL}-devel ${KERNEL}-modules ${KERNEL}-core ${KERNEL}-devel-matched
|
||||
RUN dnf -y install akmod-VirtualBox
|
||||
|
||||
COPY akmods.sh /tmp/akmods.sh
|
||||
RUN /tmp/akmods.sh ${KERNEL}
|
||||
|
||||
FROM quay.io/fedora-ostree-desktops/kinoite:41 AS base
|
||||
|
||||
ARG CACHEBUST=5
|
||||
|
||||
RUN mkdir /tmp/nvidia
|
||||
|
||||
COPY install-nvidia.sh /tmp/install-nvidia.sh
|
||||
|
||||
COPY --from=akmods-builder /var/cache/akmods/*/* /tmp/nvidia
|
||||
|
||||
COPY repo/*.repo /etc/yum.repos.d/
|
||||
|
||||
# install RPM-fusion
|
||||
RUN rpm-ostree install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
|
||||
# 32-bit dependencies for the Nvidia driver.
|
||||
RUN rpm-ostree install glibc.i686
|
||||
|
||||
# install nonfree codecs
|
||||
RUN rpm-ostree override remove libavcodec-free libavfilter-free libavformat-free libavutil-free libpostproc-free libswresample-free libswscale-free libavdevice-free ffmpeg-free --install libavcodec-freeworld
|
||||
|
||||
# Install HEIC support for Gwenview and Dolphin (and potentially other applications)
|
||||
RUN rpm-ostree install libheif-freeworld
|
||||
|
||||
# Mesa clang
|
||||
RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:andersrh:my-ostree-os mesa-filesystem mesa-dri-drivers mesa-libgbm mesa-libEGL mesa-libGL mesa-vulkan-drivers mesa-libxatracker mesa-vdpau-drivers mesa-libOSMesa mesa-libOpenCL mesa-va-drivers
|
||||
|
||||
# 32-bit dependencies for the Nvidia driver.
|
||||
RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:andersrh:my-ostree-os:ml mesa-dri-drivers.i686
|
||||
RUN rpm-ostree install mesa-filesystem.i686 mesa-libEGL.i686 mesa-libGL.i686 mesa-libgbm.i686 mesa-vulkan-drivers.i686
|
||||
|
||||
RUN rpm-ostree install ffmpeg ffmpeg-libs libavdevice intel-media-driver pipewire-codec-aptx libva-intel-driver libva-utils nvidia-vaapi-driver
|
||||
|
||||
FROM base AS kernel
|
||||
|
||||
ARG KERNEL=kernel-cachyos-lto-skylake
|
||||
ENV KERNEL=${KERNEL}
|
||||
|
||||
RUN cd /etc/yum.repos.d/ && wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo
|
||||
|
||||
RUN cd /etc/yum.repos.d/ && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/andersrh/kernel-cachyos/repo/fedora-$(rpm -E %fedora)/andersrh-kernel-cachyos-fedora-$(rpm -E %fedora).repo && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-lto/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-lto-fedora-$(rpm -E %fedora).repo && \
|
||||
wget https://negativo17.org/repos/fedora-nvidia.repo && \
|
||||
cd /tmp
|
||||
|
||||
# install binutils to get strip command
|
||||
RUN rpm-ostree install binutils
|
||||
|
||||
# Install Clang and Polly so kernel modules can be built
|
||||
RUN rpm-ostree install clang polly
|
||||
|
||||
COPY install_cachyos_kernel.sh /tmp
|
||||
# Enable cliwrap.
|
||||
RUN rpm-ostree cliwrap install-to-root / && \
|
||||
# Replace the kernel, kernel-core and kernel-modules packages.
|
||||
/tmp/install_cachyos_kernel.sh ${KERNEL}
|
||||
|
||||
# install akmods
|
||||
RUN ls /tmp/nvidia && /tmp/install-nvidia.sh ${KERNEL}
|
||||
# Install Negativo17 Nvidia driver
|
||||
RUN rpm-ostree install dkms-nvidia nvidia-driver ${KERNEL}-devel ${KERNEL}-devel-matched zstd
|
||||
RUN sed -i -e 's/kernel-open$/kernel/g' /etc/nvidia/kernel.conf
|
||||
RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL})
|
||||
|
||||
RUN rpm-ostree install nvidia-container-toolkit supergfxctl supergfxctl-plasmoid
|
||||
|
||||
RUN mv /etc/nvidia-container-runtime/config.toml{,.orig}
|
||||
|
||||
RUN systemctl enable supergfxd.service
|
||||
|
||||
# install Nvidia software
|
||||
RUN rpm-ostree install nvidia-vaapi-driver nvidia-persistenced opencl-filesystem
|
||||
|
||||
# Clear cache, /var and /tmp and commit ostree
|
||||
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||
ostree container commit
|
||||
|
||||
|
||||
FROM kernel AS os
|
||||
|
||||
ARG CACHEBUST=5
|
||||
|
||||
RUN cd /tmp && \
|
||||
rpm-ostree cleanup -m && rpm-ostree install ksshaskpass cronie distrobox fish lld nvtop seadrive-gui pulseaudio-utils hfsplus-tools VirtualBox
|
||||
|
||||
# Add podman-compose dependency for "podman compose" command
|
||||
RUN rpm-ostree install podman-compose
|
||||
|
||||
# Disable SELinux
|
||||
RUN sed -i "s/^SELINUX=.*$/SELINUX=permissive/g" /etc/sysconfig/selinux && sed -i "s/^SELINUX=.*$/SELINUX=permissive/g" /etc/selinux/config
|
||||
|
||||
# Xwayland clang
|
||||
RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:andersrh:my-ostree-os xorg-x11-server-Xwayland
|
||||
|
||||
# add Haruna media player to host for better VAAPI performance
|
||||
RUN rpm-ostree install haruna
|
||||
|
||||
# Install AppImageLauncher
|
||||
RUN rpm-ostree install https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher-2.2.0-travis995.0f91801.x86_64.rpm
|
||||
|
||||
# Install Gwenview on host for full support for image formats such as HEIC
|
||||
RUN rpm-ostree install gwenview
|
||||
|
||||
# add cachyos-settings, scx-scheds and scx-manager
|
||||
RUN rpm-ostree install scx-scheds scx-manager
|
||||
RUN rpm-ostree override remove zram-generator-defaults --install cachyos-settings
|
||||
|
||||
# Install Waydroid
|
||||
RUN rpm-ostree install waydroid
|
||||
|
||||
# Install virt-manager and LXC driver
|
||||
RUN rpm-ostree install virt-manager libvirt-daemon-driver-lxc libvirt-daemon-lxc
|
||||
|
||||
# Install VDO tools and Bees
|
||||
RUN rpm-ostree install vdo bees
|
||||
|
||||
# Install ZFS
|
||||
RUN rpm -e --nodeps zfs-fuse && rpm-ostree install https://zfsonlinux.org/fedora/zfs-release-2-6$(rpm --eval "%{dist}").noarch.rpm && rpm-ostree install zfs --uninstall zfs-fuse
|
||||
|
||||
# Build ZFS module manually
|
||||
RUN dkms install zfs/$(ls /usr/src/ | grep zfs- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL})
|
||||
|
||||
# Install Gnome Boxes
|
||||
RUN rpm-ostree install gnome-boxes
|
||||
|
||||
# Remove plocate to avoid updatedb going crazy with scanning the file system once a day
|
||||
RUN rpm-ostree override remove plocate
|
||||
|
||||
# enable scx service
|
||||
RUN systemctl enable scx.service
|
||||
|
||||
# Copy config files
|
||||
COPY etc /etc
|
||||
# Copy /usr
|
||||
COPY usr /usr
|
||||
|
||||
# Enable /nix mount service
|
||||
RUN systemctl enable mount-nix-prepare.service
|
||||
# Disable nvidia-powerd to avoid crashing when the system goes into suspension
|
||||
RUN systemctl disable nvidia-powerd
|
||||
|
||||
# Clear cache, /var and /tmp and commit ostree
|
||||
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||
ostree container commit
|
||||
|
|
@ -1,7 +1,3 @@
|
|||
ln -s /usr/lib/opt/teamviewer /opt/
|
||||
ln -s "/usr/lib/opt/Mullvad VPN" /opt/
|
||||
mkdir /var/log/teamviewer15
|
||||
systemctl --user enable --now com.system76.Scheduler.dbusproxy.service
|
||||
|
||||
https://github.com/nehemiaharchives/bbl
|
||||
Bible terminal app. Install in Ubuntu container.
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
FROM registry.fedoraproject.org/fedora-toolbox:39
|
||||
|
||||
COPY repo/*.repo /etc/yum.repos.d/
|
||||
|
||||
RUN dnf update -y
|
||||
RUN dnf install -y fish htop nano firejail
|
||||
RUN dnf install -y libnotify nss
|
||||
RUN dnf install -y --allowerasing bash bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile
|
||||
RUN dnf install -y at-spi2-core gtk3 libXScrnSaver libXtst xdg-utils
|
||||
RUN dnf install -y libglvnd-gles
|
||||
RUN dnf install -y mesa-dri-drivers mesa-vulkan-drivers vulkan mesa-va-drivers
|
||||
RUN dnf install -y libva ibus ibus-gtk3 ibus-libs ibus-m17n ibus-setup libmpc libxkbcommon-x11 libxkbfile m17n-db m17n-lib python3-cairo python3-gobject python3-gobject-base python3-gobject-base-noarch setxkbmap xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm xhost xmodmap xorg-x11-xinit xrdb cpp
|
||||
RUN dnf install -y gcr3-base gcr3 gnome-keyring
|
||||
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
||||
&& dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
RUN dnf install -y libva-intel-driver gstreamer1-plugin-openh264 ffmpeg libva-utils libavcodec-freeworld nvidia-vaapi-driver nvidia-persistenced opencl-filesystem
|
||||
RUN dnf install -y \
|
||||
xorg-x11-drv-nvidia{,-cuda,-devel,-kmodsrc} \
|
||||
xorg-x11-drv-nvidia-libs.i686
|
||||
RUN dnf install -y dbus-glib pciutils-libs
|
||||
RUN dnf -y install fuse
|
||||
RUN dnf install -y firefox
|
||||
RUN dnf install -y qt5-qtwayland qt6-qtwayland
|
||||
|
||||
# Link xdg-open to host in order to be able to open links etc.
|
||||
RUN rm -f /usr/bin/xdg-open && ln -s /usr/bin/distrobox-host-exec /usr/bin/xdg-open
|
||||
|
||||
# Install host-spawn
|
||||
RUN wget https://github.com/1player/host-spawn/releases/download/1.5.0/host-spawn-x86_64 -O /usr/bin/host-spawn && chmod +x /usr/bin/host-spawn
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
podman build -t andersrh/fedora-toolbox/base-gui -f base-gui.Dockerfile .
|
||||
podman tag localhost/andersrh/fedora-toolbox/base-gui:latest localhost/andersrh/fedora-toolbox/base-gui:39
|
||||
# podman build -t andersrh/fedora-toolbox/gui -f gui.Dockerfile .
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
FROM ghcr.io/andersrh/containers/fedora-toolbox/base-gui:main
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN dnf install -y xwininfo yt-dlp neofetch dnstop fedmod flatpak-module-tools fedpkg net-tools x2goclient
|
||||
|
||||
COPY containers/general/bin/* /usr/local/bin/
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/flatpak
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/nvtop
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/distrobox
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/uksmdstats
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/kerver
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/mullvad
|
||||
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/mullvad-exclude
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
APPNAME="general"
|
||||
|
||||
podman build -t andersrh/fedora-toolbox/$APPNAME -f fedora.Dockerfile .
|
||||
#toolbox create --image andersrh/fedora-toolbox/$APPNAME $APPNAME
|
||||
distrobox create --image andersrh/fedora-toolbox/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
|
||||
distrobox create --image andersrh/fedora-toolbox/$APPNAME --init --home ~/containers/$APPNAME/ $APPNAME-systemd
|
||||
|
||||
distrobox enter $APPNAME -- distrobox-export --app x2goclient
|
||||
distrobox enter $APPNAME -- distrobox-export --app qtcreator
|
||||
|
||||
distrobox create --image andersrh/fedora-toolbox/$APPNAME $APPNAME-defaulthome
|
||||
distrobox enter $APPNAME-defaulthome -- distrobox-export --app gnome-tweaks
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
flatpak run com.github.miguelmota.Cointop
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
export HOME="/var/home/anders"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
export HOME="/var/home/anders/containers/general"
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
||||
command="podman run -it --rm -v \"$(pwd):$(pwd)\" --workdir=\"$(pwd)\" docker.io/linuxserver/ffmpeg "
|
||||
|
||||
for arg in "$@"; do
|
||||
if echo "${arg}" | grep -Eq "'|\""; then
|
||||
command="${command} \
|
||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
||||
sed 's| |\\ |g' |
|
||||
sed 's|\$|\\\$|g' |
|
||||
sed "s|'|\\\'|g" |
|
||||
sed 's|"|\\\"|g')"
|
||||
elif echo "${arg}" | grep -q "'"; then
|
||||
command="${command} \"${arg}\""
|
||||
else
|
||||
command="${command} '${arg}'"
|
||||
fi
|
||||
done
|
||||
eval ${command}
|
||||
#else
|
||||
# /usr/local/bin/ffmpeg "$@"
|
||||
#fi
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
distrobox-host-exec $@
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
python3 "/usr/bin/snapshot-home.py"
|
||||
14
etc/crontab
14
etc/crontab
|
|
@ -1,14 +0,0 @@
|
|||
SHELL=/bin/bash
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
MAILTO=root
|
||||
|
||||
# For details see man 4 crontabs
|
||||
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
# | | .---------- day of month (1 - 31)
|
||||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * * user-name command to be executed
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
# List of scx_schedulers: scx_bpfland scx_central scx_lavd scx_layered scx_nest scx_qmap scx_rlfifo scx_rustland scx_rusty scx_simple scx_userland
|
||||
# tested: rusty, bpfland, lavd
|
||||
SCX_SCHEDULER=scx_bpfland
|
||||
|
||||
# Set custom flags for each scheduler, below is an example of how to use
|
||||
#SCX_FLAGS='-k -m performance'
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
[general-cachyos]
|
||||
image=ghcr.io/andersrh/containers/cachyos/general:main
|
||||
#additional_packages=" "
|
||||
init=false
|
||||
#nvidia=true
|
||||
pull=true
|
||||
root=false
|
||||
replace=false
|
||||
home="~/containers/general"
|
||||
|
||||
[development]
|
||||
image=ghcr.io/andersrh/containers/cachyos/development:main
|
||||
#additional_packages=" "
|
||||
exported_apps="codium"
|
||||
exported_apps="qtcreator"
|
||||
init=false
|
||||
#nvidia=true
|
||||
pull=true
|
||||
root=false
|
||||
replace=false
|
||||
home="~/containers/development"
|
||||
|
||||
[lbry]
|
||||
image=ghcr.io/andersrh/containers/cachyos/lbry:main
|
||||
init=false
|
||||
#nvidia=true
|
||||
pull=true
|
||||
root=false
|
||||
replace=false
|
||||
home="~/containers/lbry"
|
||||
|
|
@ -1 +0,0 @@
|
|||
options zfs zfs_bclone_enabled=1
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
vm.vfs_cache_pressure=50
|
||||
|
||||
vm.min_free_kbytes=212000
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# HW.1 / Nano
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c|2b7c|3b7c|4b7c", TAG+="uaccess", TAG+="udev-acl"
|
||||
# Blue
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000|0000|0001|0002|0003|0004|0005|0006|0007|0008|0009|000a|000b|000c|000d|000e|000f|0010|0011|0012|0013|0014|0015|0016|0017|0018|0019|001a|001b|001c|001d|001e|001f", TAG+="uaccess", TAG+="udev-acl"
|
||||
# Nano S
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001|1000|1001|1002|1003|1004|1005|1006|1007|1008|1009|100a|100b|100c|100d|100e|100f|1010|1011|1012|1013|1014|1015|1016|1017|1018|1019|101a|101b|101c|101d|101e|101f", TAG+="uaccess", TAG+="udev-acl"
|
||||
# Aramis
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0002|2000|2001|2002|2003|2004|2005|2006|2007|2008|2009|200a|200b|200c|200d|200e|200f|2010|2011|2012|2013|2014|2015|2016|2017|2018|2019|201a|201b|201c|201d|201e|201f", TAG+="uaccess", TAG+="udev-acl"
|
||||
# HW2
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0003|3000|3001|3002|3003|3004|3005|3006|3007|3008|3009|300a|300b|300c|300d|300e|300f|3010|3011|3012|3013|3014|3015|3016|3017|3018|3019|301a|301b|301c|301d|301e|301f", TAG+="uaccess", TAG+="udev-acl"
|
||||
# Nano X
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0004|4000|4001|4002|4003|4004|4005|4006|4007|4008|4009|400a|400b|400c|400d|400e|400f|4010|4011|4012|4013|4014|4015|4016|4017|4018|4019|401a|401b|401c|401d|401e|401f", TAG+="uaccess", TAG+="udev-acl"
|
||||
# Nano SP
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0005|5000|5001|5002|5003|5004|5005|5006|5007|5008|5009|500a|500b|500c|500d|500e|500f|5010|5011|5012|5013|5014|5015|5016|5017|5018|5019|501a|501b|501c|501d|501e|501f", TAG+="uaccess", TAG+="udev-acl"
|
||||
# Ledger Stax
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="6011", TAG+="uaccess", TAG+="udev-acl"
|
||||
|
|
@ -1 +0,0 @@
|
|||
rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
nix-env -iA nixpkgs.htop nixpkgs.whois
|
||||
nix-env -iA nixpkgs.yt-dlp
|
||||
nix-env -iA nixpkgs.neofetch
|
||||
nix-env -iA nixpkgs.boxxy
|
||||
nix-env -iA nixpkgs.xorg.xwininfo
|
||||
nix-env -iA nixpkgs.unixtools.ifconfig
|
||||
nix-env -iA nixpkgs.btop
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
FROM ghcr.io/andersrh/my-ostree-os:previous
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
FROM ghcr.io/andersrh/my-ostree-os:2-previous
|
||||
|
|
@ -1 +0,0 @@
|
|||
FROM ghcr.io/andersrh/my-ostree-os:3-previous
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
FROM ghcr.io/andersrh/my-ostree-os:main
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/python3 -u
|
||||
|
||||
import os
|
||||
import datetime
|
||||
|
||||
stream = os.popen('btrfs subvolume snapshot /var/home /var/.snapshot.home/' + datetime.datetime.now().strftime("%Y.%m.%d_%H:%M:%S") + '/')
|
||||
output = stream.read()
|
||||
print(output)
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
podman rm -f general-cachyos
|
||||
podman rm -f general
|
||||
podman rm -f development
|
||||
podman rm -f lbry
|
||||
|
||||
distrobox assemble create --file /etc/distrobox.ini
|
||||
|
||||
podman pull ghcr.io/andersrh/containers/fedora-toolbox/general:main
|
||||
distrobox create -i ghcr.io/andersrh/containers/fedora-toolbox/general:main --home ~/containers/general -n general
|
||||
|
||||
distrobox enter general -- distrobox-export --app x2goclient
|
||||
|
||||
distrobox enter development -- distrobox-export --app qtcreator
|
||||
distrobox enter development -- distrobox-export --app codium
|
||||
|
||||
distrobox enter lbry -- distrobox-export --app lbry
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
[Unit]
|
||||
Description=Prepare nix mount points
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=chattr -i /
|
||||
ExecStart=/bin/sh -c "mkdir -p /nix"
|
||||
ExecStart=/bin/sh -c "mkdir -p /var/lib/nix"
|
||||
ExecStart=/bin/sh -c "mount --bind /var/lib/nix /nix"
|
||||
# We need to restart systemd and load the nix-daemon again
|
||||
# as the nix-daemon files are actually inside the /nix folder
|
||||
# which hasn't been mounted until now
|
||||
ExecStart=/bin/sh -c "systemctl daemon-reload"
|
||||
# This will fail the first time as we haven't installed nix yet
|
||||
ExecStart=-/bin/sh -c "systemctl start nix-daemon.socket"
|
||||
ExecStopPost=chattr +i /
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
# HDD
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
|
||||
|
||||
# SSD
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]*|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
|
||||
|
||||
# NVMe SSD
|
||||
ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="adios"
|
||||
Loading…
Add table
Add a link
Reference in a new issue