A tool to take a deployed set of kubernetes resources and turn them into a helm release. Only works with helm3 > 3.2.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
874 B

FROM golang:1.14.12-alpine3.12 AS libjq
RUN apk --no-cache add curl ca-certificates alpine-sdk && \
cd /tmp ; curl -L -fsS https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz | tar -xz && \
cd jq-1.5 && \
./configure --disable-maintainer-mode --prefix=/usr && \
make install-libLTLIBRARIES install-includeHEADERS
FROM libjq AS builder
RUN update-ca-certificates
COPY go.mod /go/src/git.martyn.berlin/martyn/helm-import/
COPY cmd/ /go/src/git.martyn.berlin/martyn/helm-import/cmd/
COPY internal/ /go/src/git.martyn.berlin/martyn/helm-import/internal/
COPY Makefile /go/src/git.martyn.berlin/martyn/helm-import/
RUN cd /go/src/git.martyn.berlin/martyn/helm-import/; make deps && make dist
FROM alpine:3.12
COPY --from=builder /go/src/git.martyn.berlin/martyn/helm-import/bin/helm-import /
COPY --from=builder /usr/lib/libjq.* /usr/lib/