microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
a6b7827fcd2db3bf604d42e235216c8d5b244f13

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