diff --git a/pkg/util/cloudinit/schema/Dockerfile.quicktype b/pkg/util/cloudinit/schema/Dockerfile.quicktype index 16bf4b00e..52361c54c 100644 --- a/pkg/util/cloudinit/schema/Dockerfile.quicktype +++ b/pkg/util/cloudinit/schema/Dockerfile.quicktype @@ -1,15 +1,13 @@ FROM node:20 AS build WORKDIR /quicktype -RUN npm install --prefix /quicktype quicktype - FROM gcr.io/distroless/nodejs20-debian12 COPY --from=build /quicktype /quicktype WORKDIR /output CMD [ \ "/quicktype/node_modules/quicktype/dist/index.js", \ - "--src", "/schema.json", \ + "--src", "/schema-cloud-config-v1.json", \ "--src-lang", "schema", \ "--out", "/output/cloudconfig.go", \ "--lang", "go", \ diff --git a/pkg/util/cloudinit/schema/Makefile b/pkg/util/cloudinit/schema/Makefile index 10fdaa42e..ce91305a9 100644 --- a/pkg/util/cloudinit/schema/Makefile +++ b/pkg/util/cloudinit/schema/Makefile @@ -97,7 +97,7 @@ ifeq (docker,$(QUICKTYPE_METHOD)) $(CLOUD_CONFIG_GO): build-images-quicktype docker run -it --rm \ -v $$(pwd):/output \ - -v $$(pwd)/$(SCHEMA_CLOUD_CONFIG):/schema.json \ + -v $$(pwd)/$(SCHEMA_CLOUD_CONFIG):/schema-cloud-config-v1.json \ $(QUICKTYPE_IMAGE) $(GOIMPORTS) -w $@ else