Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add azure #5

Merged
merged 2 commits into from
Sep 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ ARG ARGOCD_VERSION=v2.4.12

ARG KSOPS_VERSION=v3.0.2

ARG AZURE_CLI_VERSION=2.9.1

FROM mcr.microsoft.com/azure-cli:${AZURE_CLI_VERSION} as azure-cli

FROM viaductoss/ksops:$KSOPS_VERSION as ksops-builder

FROM argoproj/argocd:${ARGOCD_VERSION}
Expand All @@ -12,7 +16,7 @@ USER root
# (e.g. curl, awscli, gpg, sops)

RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential curl awscli gpg && \
apt-get install -y --no-install-recommends build-essential curl awscli gpg && \
rm -rf /var/lib/apt/lists/*

ARG SOPS_VERSION=v3.7.3
Expand All @@ -30,6 +34,8 @@ ARG PKG_NAME=ksops
# Override the default kustomize executable with the Go built version
COPY --from=ksops-builder /go/bin/kustomize /usr/local/bin/kustomize

COPY --from=azure-cli /usr/local/bin/az /usr/local/bin/az

# Copy the plugin to kustomize plugin path
COPY --from=ksops-builder /go/src/github.com/viaduct-ai/kustomize-sops/* $KUSTOMIZE_PLUGIN_PATH/viaduct.ai/v1/${PKG_NAME}/

Expand Down