static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

Create a devcontainer feature to simplify install

Open aaronpowell opened this issue 3 years ago • 2 comments

devcontainers supports a feature specification, that simplifies adding something to a devcontainer base image (and removes the need for custom base images). More info on the background and philosophy can be found here.

Presently there is a devcontainer for SWA CLI, but it might be better to ship as a feature.

https://github.com/devcontainers/feature-starter contains a starter template for creating it (and its tests).

aaronpowell avatar Nov 14 '22 01:11 aaronpowell

Sounds like a great addition to SWA_CLI @aaronpowell, we will add this to our backlog items. cc: @Reshmi-Sriram

sgollapudi77 avatar Dec 01 '22 06:12 sgollapudi77

Presently there is a devcontainer for SWA CLI, but it might be better to ship as a feature.

Just to add a precision here, there are currently two container images including the SWA CLI:

  • A standalone container published on Docker Hub: https://hub.docker.com/r/swacli/static-web-apps-cli => This one allows to use the CLI without a local Node.js environment, using only Docker
  • The Static Web Apps devcontainer: https://github.com/microsoft/vscode-dev-containers/tree/main/containers/azure-static-web-apps => This one is a full self-contained dev environment for SWA (not just the CLI) with Node, Python and Dotnet installed, along Azure and SWA CLI.

Both these images have their use cases, and while I agree adding a devcontainer feature would be a nice addition, it won't replace any of these existing solutions but rather comes as an additional option for people using dev containers (and the SWA devcontainer should then be updated to make use of it).

sinedied avatar Jan 03 '23 14:01 sinedied