-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (15 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
24 lines (15 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:3.12.0 as fetcher
ARG KUSTOMIZE_VERSION=v3.8.4
ARG KUSTIMIZE_HELM_PLUGIN=v0.9.1
RUN wget -O- https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | tar xvz -C /usr/local/bin/
# RUN mv kustomize /usr/local/bin/kustomize
RUN chmod +x /usr/local/bin/kustomize
RUN mkdir -p /root/.config/kustomize/plugin/helm.kustomize.mgoltzsche.github.com/v1/chartrenderer && \
wget -O- https://github.com/mgoltzsche/helm-kustomize-plugin/releases/download/${KUSTIMIZE_HELM_PLUGIN}/helm-kustomize-plugin > /root/.config/kustomize/plugin/helm.kustomize.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer && \
chmod u+x /root/.config/kustomize/plugin/helm.kustomize.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer
FROM alpine:3.12.0
WORKDIR /workdir
ENTRYPOINT [ "/usr/local/bin/kustomize" ]
RUN apk add git --no-cache
COPY --from=fetcher /usr/local/bin/kustomize /usr/local/bin/kustomize
COPY --from=fetcher /root/.config/kustomize/plugin/helm.kustomize.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer /root/.config/kustomize/plugin/helm.kustomize.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer