extensions-sdk icon indicating copy to clipboard operation
extensions-sdk copied to clipboard

cli: ux: consider supporting to pass custom golang and node images during initialization (via flag?)

Open Dentrax opened this issue 3 years ago • 1 comments

In current implementation, FROM golang:1.17-alpine AS builder and FROM --platform=$BUILDPLATFORM node:17.7-alpine3.14 AS client-builder images are hard-coded values in the boilerplate (Dockerfile). It would be great to override those images during the initialization, for example

$ docker extension init foo --go golang:1.17-alpine --node node:17.7-alpine3.14

Any thoughts?

Dentrax avatar May 11 '22 20:05 Dentrax

Hi @Dentrax 👋 thanks for the suggestion!

The only reason I can think of why those flags would be useful is to avoid to re-build the extension after it has been generated, is it the use case you were thinking about?

benja-M-1 avatar May 30 '22 13:05 benja-M-1