From 28a3099c3cafbbae62c62d5e4d5f173bebda05ca Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Thu, 11 Jul 2024 17:05:58 +0200 Subject: [PATCH] Update code-server packages --- containers/code-server/Containerfile | 5 +++-- containers/push-all.sh | 3 +-- laptop/etc/systemd/resolved.conf | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 laptop/etc/systemd/resolved.conf diff --git a/containers/code-server/Containerfile b/containers/code-server/Containerfile index b4abb85..cf37ef3 100644 --- a/containers/code-server/Containerfile +++ b/containers/code-server/Containerfile @@ -1,7 +1,7 @@ FROM quay.io/fedora/fedora-toolbox:40 RUN dnf up -y -RUN dnf install -y bash-color-prompt cargo hyperfine nodejs-npm openssl-devel poetry postgresql-server python3-ipykernel python3-pip rustfmt rust-src systemd-container vim-enhanced -RUN dnf install -y https://github.com/coder/code-server/releases/download/v4.90.3/code-server-4.90.3-amd64.rpm +RUN dnf install -y bash-color-prompt clang gcc hyperfine llvm mtools nodejs-npm openssl-devel parted poetry postgresql-server python3-ipykernel python3-pip rustup systemd-container vim-enhanced +RUN dnf install -y https://github.com/coder/code-server/releases/download/v4.91.0/code-server-4.91.0-amd64.rpm RUN mkdir /etc/systemd/system/user@.service.d RUN mkdir /var/lib/systemd/linger RUN touch /var/lib/systemd/linger/coder @@ -10,6 +10,7 @@ RUN echo "coder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers USER coder RUN mkdir -p /home/coder/.config/systemd/user/default.target.wants RUN ln -s /etc/systemd/user/code-server.service /home/coder/.config/systemd/user/default.target.wants +RUN rustup-init -y USER root COPY override.conf /etc/systemd/system/user@.service.d COPY code-server.service /etc/systemd/user diff --git a/containers/push-all.sh b/containers/push-all.sh index fc2c469..485a0c6 100755 --- a/containers/push-all.sh +++ b/containers/push-all.sh @@ -1,9 +1,8 @@ #!/bin/sh set -e cd "$(dirname "$0")" -podman rmi -af for container in */; do container=${container%/} - id=$(podman build --ulimit nofile=-1:-1 -q "$container") + id=$(podman build --pull=always --ulimit nofile=-1:-1 -q "$container") echo | podman push --compress --sign-by-sigstore-private-key ~/Documents/cosign.key "$id" git.strypsteen.com/mathieu/"$container" done diff --git a/laptop/etc/systemd/resolved.conf b/laptop/etc/systemd/resolved.conf deleted file mode 100644 index a24a362..0000000 --- a/laptop/etc/systemd/resolved.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Resolve] -DNSSEC=true