cadl/docker/readme.md

671 B

Use TypeSpec via Docker

Image: azsdkengsys.azurecr.io/typespec

Tags:

  • Lastest from master: alpine, latest

Usage

docker run \
  -v "${pwd}:/wd" --workdir="/wd" \
  -t azsdkengsys.azurecr.io/typespec \
  # ... TypeSpec args ...

For usage in PowerShell replace \ with `

Install dependencies

docker run -v "${pwd}:/wd" --workdir="/wd"  -t azsdkengsys.azurecr.io/typespec install

Compile

docker run -v "${pwd}:/wd" --workdir="/wd"  -t azsdkengsys.azurecr.io/typespec compile .

Init a new project

docker run -v "${pwd}:/wd" --workdir="/wd"  -t azsdkengsys.azurecr.io/typespec init