cadl/docker
Jordan Danford 9f556004ec
Clean up capitalization, parentheses, and phrasing in docs (#2817)
I updated library documentation links
(https://microsoft.github.io/typespec/libraries =>
https://typespec.io/docs/libraries), should I update the other
https://microsoft.github.io links as well?
2024-01-25 10:40:16 -08:00
..
Dockerfile Get rid of rush and move to pnpm (#2775) 2024-01-24 13:37:34 -08:00
readme.md Clean up capitalization, parentheses, and phrasing in docs (#2817) 2024-01-25 10:40:16 -08:00

readme.md

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