microsoft / vscode-azure-iot-edge

Azure IoT Edge for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-edge
Other
51 stars 36 forks source link

Target-architecture specific build options in module.json #648

Open RenSilvaAU opened 1 year ago

RenSilvaAU commented 1 year ago

I would like to know if the existing schema supports different build-options, depending the target architecture.

More specifically, I would like to be able to have something like this:

      "tag": {
          "version": "0.1",
          "platforms": {
              "amd64": "./Dockerfile.amd64",
              "arm64": "./Dockerfile.arm64"
          }
      },
      "buildOptions":
          "platforms": {
              "amd64": ["--platform","linux/amd64"],
              "arm64": ["--platform","linux/arm64","--load"]
          },

I know this is not possible at the moment.

Is there any way to address these requirements?

konichi3 commented 1 year ago

We are adding this to the backlog. Thanks for reporting.