Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.31 KB

docker.md

File metadata and controls

19 lines (15 loc) · 1.31 KB

Use AutoRest with docker

AutoRest provide some docker images:

Image Description Ubuntu
azsdkengsys.azurecr.io/azuresdk/autorest Base image with node installed ✔️
azsdkengsys.azurecr.io/azuresdk/autorest-python Base image + python 3 For building python sdk ✔️
azsdkengsys.azurecr.io/azuresdk/autorest-dotnet Base image + dotnet. For building csharp sdk ✔️
azsdkengsys.azurecr.io/azuresdk/autorest-java Base image + java. For building java sdk ✔️
azsdkengsys.azurecr.io/azuresdk/autorest-all Base image with all the languages for building any of the sdk above ✔️

Usage

# Run the autorest image that fits your need(see next section for different options) and mount the current directory to access the openapi spec there.
docker run -v "${pwd}:/specs" -t <autorest-image> \
    --input-file=/specs/openapi.json