microsoft/typespec
Publicmirrored fromhttps://github.com/microsoft/typespecAvailable
docker/readme.md
36lines · modecode
| 1 | # Use TypeSpec via Docker |
| 2 | |
| 3 | Image: `azsdkengsys.azurecr.io/typespec` |
| 4 | |
| 5 | Tags: |
| 6 | |
| 7 | - Lastest from master: `alpine`, `latest` |
| 8 | |
| 9 | ## Usage |
| 10 | |
| 11 | ```bash |
| 12 | docker run \ |
| 13 | -v "${pwd}:/wd" --workdir="/wd" \ |
| 14 | -t azsdkengsys.azurecr.io/typespec |
| 15 | # ... TypeSpec args ... |
| 16 | ``` |
| 17 | |
| 18 | **For usage in PowerShell replace `\` with `` ` ``** |
| 19 | |
| 20 | ### Install dependencies |
| 21 | |
| 22 | ```bash |
| 23 | docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec install |
| 24 | ``` |
| 25 | |
| 26 | ### Compile |
| 27 | |
| 28 | ```bash |
| 29 | docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec compile . |
| 30 | ``` |
| 31 | |
| 32 | ### Init a new project |
| 33 | |
| 34 | ```bash |
| 35 | docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec init |
| 36 | ``` |
| 37 | |