microsoft/typespec

Public

mirrored fromhttps://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
388961b02e3fe59e196579631bad6806b773c015

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docker/readme.md

36lines · modecode

1# Use TypeSpec via Docker
2
3Image: `azsdkengsys.azurecr.io/typespec`
4
5Tags:
6
7- Lastest from master: `alpine`, `latest`
8
9## Usage
10
11```bash
12docker 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
23docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec install
24```
25
26### Compile
27
28```bash
29docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec compile .
30```
31
32### Init a new project
33
34```bash
35docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec init
36```
37