Skip to content

Commit 53f1bee

Browse files
build: upgrade dependencies (#104)
* ci: bump version * build: upgrade dependencies * build: remove redundant instructions * build: optimize Dockerfile * build: bump Docker version * Revert "build: bump Docker version" This reverts commit a5b7850. * ci: trigger ci * Reapply "build: bump Docker version" This reverts commit a9f3ed8. * empty * ci: trigger ci * build: upgrade dependencies * fix: add `readline` * Revert "fix: add `readline`" This reverts commit 6b0b019. * Revert "build: bump Docker version" This reverts commit a5b7850. * build: revert dependency changes --------- Co-authored-by: Mikhail Klimko <[email protected]>
1 parent f41ee67 commit 53f1bee

File tree

2 files changed

+17
-28
lines changed

2 files changed

+17
-28
lines changed

Dockerfile

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
1-
ARG DOCKER_VERSION=28.5.1
2-
31
# dind-cleaner
4-
FROM golang:1.25-alpine3.22 AS cleaner
5-
2+
FROM golang:1.25-alpine3.23 AS cleaner
63
COPY cleaner/dind-cleaner/* /go/src/github.com/codefresh-io/dind-cleaner/
74
WORKDIR /go/src/github.com/codefresh-io/dind-cleaner/
8-
95
RUN go mod tidy
10-
116
COPY cleaner/dind-cleaner/cmd ./cmd/
7+
RUN CGO_ENABLED=0 go build -o /usr/local/bin/dind-cleaner ./cmd \
8+
&& chmod +x /usr/local/bin/dind-cleaner \
9+
&& rm -rf /go/*
1210

13-
RUN CGO_ENABLED=0 go build -o /usr/local/bin/dind-cleaner ./cmd && \
14-
chmod +x /usr/local/bin/dind-cleaner && \
15-
rm -rf /go/*
1611

1712
# bbolt
18-
FROM golang:1.25-alpine3.22 AS bbolt
13+
FROM golang:1.25-alpine3.23 AS bbolt
1914
RUN go install go.etcd.io/bbolt/cmd/bbolt@latest
2015

21-
# node-exporter
22-
FROM quay.io/prometheus/node-exporter:v1.9.1 AS node-exporter
2316

2417
# Main
25-
FROM docker:${DOCKER_VERSION}-dind
26-
27-
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.22/main' >> /etc/apk/repositories \
28-
&& apk upgrade \
29-
# Add fuse-overlayfs for comaptibility with rootless. Volumes created with rootless might use fuse-overlay formatted volumes. If those volumes are later used by dind that runs with root it'll require fuse-overlay to be able to read the volume
30-
&& apk add bash fuse-overlayfs jq --no-cache \
31-
# Needed only for `update-alternatives` below
32-
&& apk add dpkg --no-cache \
33-
# A security fix till it's fixed in base dind image (CR-31906)
34-
&& apk add git --no-cache --upgrade \
35-
&& rm -rf /var/cache/apk/*
36-
18+
FROM docker:28.5.2-dind AS prod
19+
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.23/main' >> /etc/apk/repositories \
20+
&& apk upgrade && apk add --no-cache \
21+
bash \
22+
# Add fuse-overlayfs for compatibility with rootless. Volumes created with rootless might use fuse-overlay formatted volumes. If those volumes are later used by dind that runs with root it'll require fuse-overlay to be able to read the volume
23+
fuse-overlayfs \
24+
jq \
25+
# Needed only for `update-alternatives` below
26+
dpkg
3727
# Backward compatibility with kernels that do not support `iptables-nft`. Check #CR-23033 for details.
3828
RUN update-alternatives --install $(which iptables) iptables $(which iptables-legacy) 10 \
3929
&& update-alternatives --install $(which ip6tables) ip6tables $(which ip6tables-legacy) 10
40-
41-
COPY --from=node-exporter /bin/node_exporter /bin/
42-
COPY --from=cleaner /usr/local/bin/dind-cleaner /bin/
30+
COPY --from=quay.io/prometheus/node-exporter:v1.10.2 /bin/node_exporter /bin/
4331
COPY --from=bbolt /go/bin/bbolt /bin/
32+
COPY --from=cleaner /usr/local/bin/dind-cleaner /bin/
4433

4534
WORKDIR /dind
4635
ADD . /dind

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 3.0.5
1+
version: 3.0.6

0 commit comments

Comments
 (0)