Alexey Odinokov 8d02a8d96f Adding krm-function functionality to qcow-bundle
That allows to get metainformation about the qcow-bundle, e.g.

```
apiVersion: airshipit.org/v1alpha1
kind: VariableCatalogue
metadata:
  name: profile_multistrap
inventory_hostname_short: localhost
k8s_version: 1.18.6-00
kdump_tools:
  crashkernel: 768M
...
```

See README.md diff to get more information about this feature including example.

Change-Id: Iceef31ef64bc360e6063b437a83548e21a2cf9ac
2021-10-14 22:32:27 +00:00

16 lines
326 B
Docker

FROM quay.io/airshipit/golang:1.16.8-buster
ENV CGO_ENABLED=0
WORKDIR /go/src/
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /usr/local/bin/function ./
#############################################
FROM alpine:3.13
COPY --from=0 /usr/local/bin/function /usr/local/bin/function
ENTRYPOINT ["function"]