-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: publish distroless images (#385)
We've had a long history of Alpine vulnerability reports on Relay's Docker images. The patches percolate into the upstream tools that are bundled in Alpine, then into Alpine, then into the Alpine docker image release, and finally into a Relay release. Since Relay is a simple Go binary, we could take advantage of Google's "distroless" container system. This is an extremely stripped down debian12 image with "just" the Go binary. The attack surface is smaller and we'd have less necessary maintenance. This PR adds two new image manifests: - `static-debian12-nonroot` (based on `gcr.io/distroless/static-debian12:nonroot`) - `static-debian12-debug-nonroot` (based on `gcr.io/distroless/static-debian12:debug-nonroot`). Each manifest supports amd64, armv7, and armv8 architectures. There is additional support for `ppc64le` and `s390x` in those base images, but I haven't exposed them here yet in order to give a similar offering to the Alpine image (note: we're missing `i386`.)
- Loading branch information
1 parent
36cdd1b
commit fe0155f
Showing
6 changed files
with
234 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This is a Dockerfile used for release (published to dockerhub by goreleaser) | ||
|
||
FROM gcr.io/distroless/static-debian12:debug-nonroot | ||
# See "Runtime platform versions" in CONTRIBUTING.md | ||
|
||
COPY ld-relay /usr/bin/ldr | ||
|
||
EXPOSE 8030 | ||
ENV PORT=8030 | ||
ENTRYPOINT ["/usr/bin/ldr", "--config", "/ldr/ld-relay.conf", "--allow-missing-file", "--from-env"] |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This is a Dockerfile used for release (published to dockerhub by goreleaser) | ||
|
||
FROM gcr.io/distroless/static-debian12:nonroot | ||
# See "Runtime platform versions" in CONTRIBUTING.md | ||
|
||
COPY ld-relay /usr/bin/ldr | ||
|
||
EXPOSE 8030 | ||
ENV PORT=8030 | ||
ENTRYPOINT ["/usr/bin/ldr", "--config", "/ldr/ld-relay.conf", "--allow-missing-file", "--from-env"] |
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