Skip to content

Commit ad08d01

Browse files
authored
chore(releasing): Run hadolint on distributed Dockerfiles (vectordotdev#18224)
* chore(releasing): Run hadolint on distributed Dockerfiles Signed-off-by: Jesse Szwedko <[email protected]> * spelling Signed-off-by: Jesse Szwedko <[email protected]> --------- Signed-off-by: Jesse Szwedko <[email protected]>
1 parent ca7fa05 commit ad08d01

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.github/actions/spelling/expect.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ asdf
3737
asdfasdf
3838
assertverify
3939
Asterix
40-
asynk
4140
atag
4241
atx
4342
aty
@@ -460,6 +459,7 @@ gty
460459
Guangzhou
461460
guenter
462461
gzip'ed
462+
hadolint
463463
halfsies
464464
hannes
465465
Hashbang
@@ -569,7 +569,6 @@ kernelmode
569569
keybase
570570
keyclock
571571
keyid
572-
keypair
573572
keyxxxxx
574573
khvzak
575574
kib

distribution/docker/alpine/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN tar -xvf vector-0*-"$(cat /etc/apk/arch)"-unknown-linux-musl*.tar.gz --strip
88
RUN mkdir -p /var/lib/vector
99

1010
FROM docker.io/alpine:3.18
11+
# we want the latest versions of these
12+
# hadolint ignore=DL3018
1113
RUN apk --no-cache add ca-certificates tzdata
1214

1315
COPY --from=builder /vector/bin/* /usr/local/bin/

distribution/docker/debian/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ RUN mkdir -p /var/lib/vector
99

1010
FROM docker.io/debian:bookworm-slim
1111

12+
# we want the latest versions of these
13+
# hadolint ignore=DL3008
1214
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates tzdata systemd && rm -rf /var/lib/apt/lists/*
1315

1416
COPY --from=builder /usr/bin/vector /usr/bin/vector

distribution/docker/distroless-libc/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ RUN dpkg -i vector_*_"$(dpkg --print-architecture)".deb
77

88
RUN mkdir -p /var/lib/vector
99

10-
FROM gcr.io/distroless/cc-debian11
10+
# distroless doesn't use static tags
11+
# hadolint ignore=DL3007
12+
FROM gcr.io/distroless/cc-debian11:latest
1113

1214
COPY --from=builder /usr/bin/vector /usr/bin/vector
1315
COPY --from=builder /usr/share/doc/vector /usr/share/doc/vector

distribution/docker/distroless-static/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ RUN tar -xvf vector-0*-"$(cat /etc/apk/arch)"-unknown-linux-musl*.tar.gz --strip
77

88
RUN mkdir -p /var/lib/vector
99

10-
FROM gcr.io/distroless/static
10+
# distroless doesn't use static tags
11+
# hadolint ignore=DL3007
12+
FROM gcr.io/distroless/static:latest
1113

1214
COPY --from=builder /vector/bin/* /usr/local/bin/
1315
COPY --from=builder /vector/config/vector.toml /etc/vector/vector.toml

0 commit comments

Comments
 (0)