Skip to content

Commit

Permalink
chore(releasing): Run hadolint on distributed Dockerfiles (vectordotd…
Browse files Browse the repository at this point in the history
…ev#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]>
  • Loading branch information
jszwedko authored Aug 11, 2023
1 parent ca7fa05 commit ad08d01
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ asdf
asdfasdf
assertverify
Asterix
asynk
atag
atx
aty
Expand Down Expand Up @@ -460,6 +459,7 @@ gty
Guangzhou
guenter
gzip'ed
hadolint
halfsies
hannes
Hashbang
Expand Down Expand Up @@ -569,7 +569,6 @@ kernelmode
keybase
keyclock
keyid
keypair
keyxxxxx
khvzak
kib
Expand Down
2 changes: 2 additions & 0 deletions distribution/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN tar -xvf vector-0*-"$(cat /etc/apk/arch)"-unknown-linux-musl*.tar.gz --strip
RUN mkdir -p /var/lib/vector

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

COPY --from=builder /vector/bin/* /usr/local/bin/
Expand Down
2 changes: 2 additions & 0 deletions distribution/docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ RUN mkdir -p /var/lib/vector

FROM docker.io/debian:bookworm-slim

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

COPY --from=builder /usr/bin/vector /usr/bin/vector
Expand Down
4 changes: 3 additions & 1 deletion distribution/docker/distroless-libc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ RUN dpkg -i vector_*_"$(dpkg --print-architecture)".deb

RUN mkdir -p /var/lib/vector

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

COPY --from=builder /usr/bin/vector /usr/bin/vector
COPY --from=builder /usr/share/doc/vector /usr/share/doc/vector
Expand Down
4 changes: 3 additions & 1 deletion distribution/docker/distroless-static/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ RUN tar -xvf vector-0*-"$(cat /etc/apk/arch)"-unknown-linux-musl*.tar.gz --strip

RUN mkdir -p /var/lib/vector

FROM gcr.io/distroless/static
# distroless doesn't use static tags
# hadolint ignore=DL3007
FROM gcr.io/distroless/static:latest

COPY --from=builder /vector/bin/* /usr/local/bin/
COPY --from=builder /vector/config/vector.toml /etc/vector/vector.toml
Expand Down

0 comments on commit ad08d01

Please sign in to comment.