-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Debian to bookworm * Update Go to v1.21.3 * Update Rust to v1.73.0 * Update K3d to v5.6.0 * Update Node to v1.20 * Update markdownlint-cli2 to v0.10.0 * Update golangci-lint to v1.55.1 * Update k3s image metadata to include k3s v1.28
- Loading branch information
Showing
7 changed files
with
59 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,24 +8,28 @@ | |
# should not be published. Instead, these layers should be used to provide | ||
# cached data to individual `RUN` commands. | ||
|
||
FROM docker.io/library/debian:bullseye-slim as apt-base | ||
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >>/etc/apt/sources.list | ||
FROM docker.io/library/debian:bookworm-slim as apt-base | ||
RUN echo 'deb http://deb.debian.org/debian bookworm-backports main' >>/etc/apt/sources.list | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl unzip xz-utils | ||
COPY --link bin/scurl /usr/local/bin/ | ||
|
||
# node v16 is not available in bullseye-backports, so we need to configure an | ||
# additional apt repo to get it. We don't want to use that configuration for | ||
# anything else, though. | ||
FROM apt-base as apt-node | ||
RUN curl --tlsv1.2 -fsSL https://deb.nodesource.com/setup_16.x | bash - | ||
|
||
RUN apt-get install -y gnupg2 | ||
ARG NODE_MAJOR=20 | ||
RUN mkdir -p /etc/apt/keyrings && scurl https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" >/etc/apt/sources.list.d/nodesource.list | ||
RUN apt-get update && apt-get install nodejs -y | ||
|
||
# At the moment, we can use the LLVM version shipped by Debian bookworm. If we | ||
# need to diverge in the future we can update this layer to use an alternate apt | ||
# source. See https://apt.llvm.org/. | ||
FROM apt-base as apt-llvm | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg2 | ||
RUN curl --tlsv1.2 -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key |apt-key add - | ||
RUN ( echo 'deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main' \ | ||
&& echo 'deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main' ) >> /etc/apt/sources.list | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update | ||
# RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg2 | ||
# RUN curl --tlsv1.2 -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key |apt-key add - | ||
# RUN ( echo 'deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-14 main' \ | ||
# && echo 'deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-14 main' ) >> /etc/apt/sources.list | ||
# RUN DEBIAN_FRONTEND=noninteractive apt-get update | ||
|
||
## | ||
## Scripting tools | ||
|
@@ -80,7 +84,7 @@ RUN url="https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" ; | |
|
||
# k3d runs kubernetes clusters in docker. | ||
FROM apt-base as k3d | ||
ARG K3D_VERSION=v5.5.1 | ||
ARG K3D_VERSION=v5.6.0 | ||
RUN url="https://raw.githubusercontent.com/rancher/k3d/$K3D_VERSION/install.sh" ; \ | ||
scurl "$url" | USE_SUDO=false K3D_INSTALL_DIR=/usr/local/bin bash | ||
# just-k3d is a utility that encodes many of the common k3d commands we use. | ||
|
@@ -197,38 +201,38 @@ COPY --link bin/just-cargo /bin/ | |
## Go tools | ||
## | ||
|
||
FROM docker.io/library/golang:1.19.8 as go-delve | ||
FROM docker.io/library/golang:1.21.3 as go-delve | ||
RUN go install github.com/go-delve/delve/cmd/dlv@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as go-impl | ||
FROM docker.io/library/golang:1.21.3 as go-impl | ||
RUN go install github.com/josharian/impl@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as go-outline | ||
FROM docker.io/library/golang:1.21.3 as go-outline | ||
RUN go install github.com/ramya-rao-a/go-outline@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as go-protoc | ||
FROM docker.io/library/golang:1.21.3 as go-protoc | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
RUN go install google.golang.org/grpc/cmd/[email protected] | ||
|
||
FROM docker.io/library/golang:1.19.8 as golangci-lint | ||
FROM docker.io/library/golang:1.21.3 as golangci-lint | ||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as gomodifytags | ||
FROM docker.io/library/golang:1.21.3 as gomodifytags | ||
RUN go install github.com/fatih/gomodifytags@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as gopkgs | ||
FROM docker.io/library/golang:1.21.3 as gopkgs | ||
RUN go install github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as goplay | ||
FROM docker.io/library/golang:1.21.3 as goplay | ||
RUN go install github.com/haya14busa/goplay/cmd/goplay@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as gopls | ||
FROM docker.io/library/golang:1.21.3 as gopls | ||
RUN go install golang.org/x/tools/gopls@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as gotests | ||
FROM docker.io/library/golang:1.21.3 as gotests | ||
RUN go install github.com/cweill/gotests/gotests@latest | ||
|
||
FROM docker.io/library/golang:1.19.8 as gotestsum | ||
FROM docker.io/library/golang:1.21.3 as gotestsum | ||
RUN go install gotest.tools/[email protected] | ||
|
||
FROM scratch as tools-go | ||
|
@@ -267,7 +271,7 @@ COPY --link --from=tools-script /bin/* /bin/ | |
## | ||
|
||
# A Go build environment. | ||
FROM docker.io/library/golang:1.19.8 as go | ||
FROM docker.io/library/golang:1.21.3 as go | ||
RUN --mount=type=cache,from=apt-base,source=/etc/apt,target=/etc/apt,ro \ | ||
--mount=type=cache,from=apt-base,source=/var/cache/apt,target=/var/cache/apt \ | ||
--mount=type=cache,from=apt-base,source=/var/lib/apt/lists,target=/var/lib/apt/lists,ro \ | ||
|
@@ -281,7 +285,7 @@ ENV PROTOC_NO_VENDOR=1 \ | |
PROTOC_INCLUDE=/usr/local/include | ||
|
||
# A Rust build environment. | ||
FROM docker.io/rust:1.69.0-slim-bullseye as rust | ||
FROM docker.io/rust:1.73.0-slim-bookworm as rust | ||
RUN --mount=type=cache,from=apt-base,source=/etc/apt,target=/etc/apt,ro \ | ||
--mount=type=cache,from=apt-base,source=/var/cache/apt,target=/var/cache/apt \ | ||
--mount=type=cache,from=apt-base,source=/var/lib/apt/lists,target=/var/lib/apt/lists,ro \ | ||
|
@@ -335,7 +339,7 @@ RUN --mount=type=cache,from=apt-base,source=/etc/apt,target=/etc/apt,ro \ | |
## Devcontainer | ||
## | ||
|
||
FROM docker.io/library/debian:bullseye as devcontainer | ||
FROM docker.io/library/debian:bookworm as devcontainer | ||
RUN --mount=type=cache,from=apt-base,source=/etc/apt,target=/etc/apt,ro \ | ||
--mount=type=cache,from=apt-base,source=/var/cache/apt,target=/var/cache/apt \ | ||
--mount=type=cache,from=apt-base,source=/var/lib/apt/lists,target=/var/lib/apt/lists,ro \ | ||
|
@@ -350,7 +354,7 @@ RUN --mount=type=cache,from=apt-base,source=/etc/apt,target=/etc/apt,ro \ | |
libssl-dev \ | ||
locales \ | ||
lsb-release \ | ||
netcat \ | ||
netcat-openbsd \ | ||
pkg-config \ | ||
skopeo \ | ||
sudo \ | ||
|
@@ -370,7 +374,7 @@ RUN groupadd --gid=1000 code \ | |
RUN --mount=type=cache,from=apt-base,source=/etc/apt,target=/etc/apt,ro \ | ||
--mount=type=cache,from=apt-base,source=/var/cache/apt,target=/var/cache/apt \ | ||
--mount=type=cache,from=apt-base,source=/var/lib/apt/lists,target=/var/lib/apt/lists,ro \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y -t bullseye-backports git | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y -t bookworm-backports git | ||
|
||
RUN --mount=type=cache,from=apt-llvm,source=/etc/apt,target=/etc/apt,ro \ | ||
--mount=type=cache,from=apt-llvm,source=/var/cache/apt,target=/var/cache/apt \ | ||
|
@@ -390,7 +394,7 @@ RUN --mount=type=cache,id=apt-docker,from=apt-base,source=/etc/apt,target=/etc/a | |
scurl https://raw.githubusercontent.com/microsoft/vscode-dev-containers/main/script-library/docker-debian.sh | bash -s | ||
ENV DOCKER_BUILDKIT=1 | ||
|
||
ARG MARKDOWNLINT_VERSION=0.5.1 | ||
ARG MARKDOWNLINT_VERSION=0.10.0 | ||
RUN --mount=type=cache,from=apt-node,source=/etc/apt,target=/etc/apt,ro \ | ||
--mount=type=cache,from=apt-node,source=/var/cache/apt,target=/var/cache/apt \ | ||
--mount=type=cache,from=apt-node,source=/var/lib/apt/lists,target=/var/lib/apt/lists \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
{ | ||
"name": "docker.io/rancher/k3s", | ||
"channels": { | ||
"stable": "v1.26.4-k3s1", | ||
"latest": "v1.27.2-k3s1", | ||
"stable": "v1.27.7-k3s1", | ||
"latest": "v1.28.3-k3s1", | ||
"v1.20": "v1.20.15-k3s1", | ||
"v1.21": "v1.21.14-k3s1", | ||
"v1.22": "v1.22.17-k3s1", | ||
"v1.23": "v1.23.17-k3s1", | ||
"v1.24": "v1.24.14-k3s1", | ||
"v1.25": "v1.25.10-k3s1", | ||
"v1.26": "v1.26.5-k3s1", | ||
"v1.27": "v1.27.2-k3s1" | ||
"v1.24": "v1.24.17-k3s1", | ||
"v1.25": "v1.25.15-k3s1", | ||
"v1.26": "v1.26.10-k3s1", | ||
"v1.27": "v1.27.7-k3s1", | ||
"v1.28": "v1.28.3-k3s1" | ||
}, | ||
"digests": { | ||
"v1.20.15-k3s1": "sha256:0e49b63b8ee234e308ff578682f8f4f2f95bffda7ba75077e5da29548cd2a6b3", | ||
"v1.21.14-k3s1": "sha256:85745e4fa94050ead9c8a935c2a2136bfdfe107c3592fb229fb6aff26640ca72", | ||
"v1.22.17-k3s1": "sha256:c35db9bc45a073607f821343d94104ac2d9ca0ef85892b80fce21dd89583fb14", | ||
"v1.23.17-k3s1": "sha256:6f2b6d6d756b3f2f04c864ca2773435b9f19473a3568893720aef46f2cd47606", | ||
"v1.24.14-k3s1": "sha256:2835a8194b85198bdc10e9172920f19f2f1b0b3f81dca8c4ffc85e84f49db470", | ||
"v1.25.10-k3s1": "sha256:fbb83e55b0b7933d5e26869aacc35460d778f0ed0a479560023184dc4ef83ff7", | ||
"v1.26.4-k3s1": "sha256:ff61834317d7f0a58e3366546fe301b7e6802a36c39126de686d9eb9e64f81cf", | ||
"v1.26.5-k3s1": "sha256:ac34a7e8a2811639abc5c2aec9f918dcab1d0d9a2ed6a031e016591dc5d6df25", | ||
"v1.27.2-k3s1": "sha256:66d13a1d6f92c7aa41f7734d5e97526a868484071d7467feb69dd868ad653254" | ||
"v1.24.17-k3s1": "sha256:9e034931999854c6210b86a0708fde66b91370459fa077a4f9d008e7f51fc51d", | ||
"v1.25.15-k3s1": "sha256:eacb00c298c91b2a84542fd52d5ef2ff5f12c7dfb8b8db8ab79d5f545c1515a1", | ||
"v1.26.10-k3s1": "sha256:be33ac01f341e67990f273dfefee1794b9ed426e437904e949dc675d5f44420c", | ||
"v1.27.7-k3s1": "sha256:7fb787b75f2839ad4e100facddcb1ce015609d8aec4201dcf2c01713518c9a9a", | ||
"v1.28.3-k3s1": "sha256:7cf31ec93c58d5542cfd63649aea5a638203924dd9dc8c75bd7b1e91214bb4dd" | ||
} | ||
} |