autorest in a container
Just use the container as you would use autorest itself. The container runs autorest --help as the default command, where --help can be overridden easily.
docker run --rm -v ${pwd}:/data softaware/autorest:1.1.0 --input-file=<input-file> --<language>
With the new autorest-version it gets distributed via npm. After the installation via npm it really installs itself, to ensure specific versions and prevent this tedious installation process we decided to containerize it.
The image is created with create-image.ps1. Please update the version information in this README according to the new versions.
// Parameters
[1] node-version # node-version according to https://hub.docker.com/r/library/node/
// Flags
-silent # omit Docker-Output only show success and error messages
-publish # publish the created Image to Docker-Hub; `docker login` necessary
# create only
> .\create-image.ps1 1.1.0 -silent
softaware/autorest:1.1.0 created successfully
# create and publish
> .\create-image.ps1 1.1.0 -silent -publish
softaware/autorest:1.1.0 created successfully
softaware/autorest:1.1.0 published successfully
Content type
Image
Digest
Size
365.8 MB
Last updated
over 7 years ago
docker pull softaware/autorest:2.0.4283