Description
Description
Is seems like swagger-codegen is not installed in the latest release docker, 3.0.52. Trying to generate output from an API specification gives the following error:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "generate": executable file not found in $PATH: unknown.
My interpretation is that swagger-codegen should be installed on /opt in the docker images but that path is empty for 3.0.52
Swagger-codegen version
Using latest released docker image 3.0.52
Swagger declaration file content or url
N/A
Command line used for generation
$ docker run --rm -v /local/home/maxarcat/:/maxarcat swaggerapi/swagger-codegen-cli-v3:3.0.52 generate \
--input-spec /maxarcat/discovery-api.json \
--lang python \
--output /maxarcat/maxarcat_client \
--reserved-words-mappings datetime=search_datetime \
--config /maxarcat/maxarcat_client_config.json
Steps to reproduce
docker run --rm swaggerapi/swagger-codegen-cli-v3:3.0.52 generate
Any call to generate
results in the error:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "generate": executable file not found in $PATH: unknown.
Verifying that opt is empty can be performed by:
$ docker run -it --rm swaggerapi/swagger-codegen-cli-v3:3.0.52 sh
/generator # ls /opt