Skip to content

Commit

Permalink
feat: support remote refs in Docker image (#182)
Browse files Browse the repository at this point in the history
Some users may want to take advantage of remote references to build
resources. These could be either over HTTPS or using git which are
both supported by Kustomize.

This commit adds ca-certificates and the git package to the final
image to support either approach.
  • Loading branch information
therealdwright committed May 18, 2023
1 parent b2f28bd commit cec9bdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ FROM debian:bullseye-slim

LABEL org.opencontainers.image.source="https://github.com/viaduct-ai/kustomize-sops"

# ca-certs and git could be required if kustomize remote-refs are used
RUN apt update -y \
&& apt install -y git ca-certificates \
&& apt clean -y && rm -rf /var/lib/apt/lists/*

# Copy only necessary files from the builder stage
COPY --from=builder /go/bin/ksops /usr/local/bin/ksops
COPY --from=builder /go/bin/kustomize /usr/local/bin/kustomize
Expand Down

0 comments on commit cec9bdc

Please sign in to comment.