cadl/docker
Timothee Guerin 76375a80f4
Add dev container configuration for repo (#3440)
This should help opening PR in codespaces as well as helping new
contributors
2024-05-24 00:20:36 +00:00
..
Dockerfile Add dev container configuration for repo (#3440) 2024-05-24 00:20:36 +00: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