Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update k3s version to 1.31.0 with 24.04 as base image #299

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tfgrid3/k3s/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu:20.04
FROM ubuntu:24.04

Check failure

Code scanning / Trivy

Image user should not be 'root' High

Artifact: tfgrid3/k3s/Dockerfile
Type: dockerfile
Vulnerability DS002
Severity: HIGH
Message: Specify at least 1 USER command in Dockerfile with non-root user as argument
Link: DS002
RUN export DEBIAN_FRONTEND=noninteractive && apt-get -qy update && \
apt-get -qy install wget ssh iproute2 ntp && \
wget --progress=bar:force:noscroll -O /sbin/k3s https://github.com/k3s-io/k3s/releases/download/v1.30.0+k3s1/k3s && \
wget --progress=bar:force:noscroll -O /sbin/k3s https://github.com/k3s-io/k3s/releases/download/v1.31.0+k3s1/k3s && \
chmod +x /sbin/k3s && \
wget --progress=bar:force:noscroll -O /sbin/kubectl https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl && \
wget --progress=bar:force:noscroll -O /sbin/kubectl https://dl.k8s.io/release/v1.31.0/bin/linux/amd64/kubectl && \
chmod +x /sbin/kubectl && \
wget --progress=bar:force:noscroll -O /sbin/zinit https://github.com/threefoldtech/zinit/releases/download/v0.2.14/zinit && \
chmod +x /sbin/zinit && \
Expand All @@ -16,4 +16,4 @@
RUN chmod +x /scripts/*
COPY manifests /var/lib/rancher/k3s/server/manifests/

ENTRYPOINT [ "zinit", "init" ]
ENTRYPOINT [ "zinit", "init" ]
Loading