Compare commits

...

2 Commits

Author SHA1 Message Date
5b73011192 fix: update dockerfiles
Some checks failed
Build container / fedora-build (push) Has been cancelled
2025-12-27 14:27:44 +01:00
c137f16ddf chore: remve -kvm and -usb
Better to just use the podman flags, they are very similair
2025-12-27 14:08:57 +01:00
3 changed files with 7 additions and 12 deletions

View File

@@ -5,16 +5,16 @@ RUN dnf update -y && \
dnf copr enable -y atim/lazygit && \
dnf -y install procps ping bash-completion glibc-langpack-en \
host-spawn dbus-launch \
zoxide git npm neovim awk jq unzip fd-find lazygit
zoxide git npm neovim awk jq unzip fd-find lazygit && \
dnf clean all
# === setup user ===
RUN useradd -ms /bin/bash user && \
usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers && \
mkdir -p /run/user/1000 && chown user:user /run/user/1000
echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers && \
install -d -o user -g user /run/user/1000 /home/user/.config /home/user/.local /home/user/.cache
USER user
WORKDIR /home/user
RUN mkdir .config .local .cache
RUN git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
COPY --chown=user:user config/bashrc .bashrc

View File

@@ -2,9 +2,8 @@ ARG TAG
FROM git.plabble.org/job79/fedora:${TAG}
USER root
RUN dnf -y install kubectl k9s openssl age
RUN curl -sL https://talos.dev/install | sh
RUN curl -s https://fluxcd.io/install.sh | bash
RUN dnf -y install "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.assets[] | select(.name | test("sops-.*.x86_64.rpm$")) | .browser_download_url')"
RUN dnf -y install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.assets[] | select(.name | test("sops-.*.x86_64.rpm$")) | .browser_download_url')" && \
curl -sL https://talos.dev/install | sh && \
curl -s https://fluxcd.io/install.sh | bash
USER user

View File

@@ -49,10 +49,6 @@ param_args() {
case "$1" in
-gpu) # Enable gpu acceleration.
arg "--device /dev/dri" ;;
-kvm) # Enable KVM.
arg "--device /dev/kvm" ;;
-usb) # Enable USB access.
arg "--device /dev/bus/usb" ;;
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
arg "-v /run/user/$UID/bus:/tmp/bus"
arg "-e HOST_HOME=$HOME" # Used to translate paths.