You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,26 +157,34 @@ The generated code will be located under `./out/go` in the current directory.
157
157
158
158
The openapi-generator-online image can act as a self-hosted web application and API for generating code. This container can be incorporated into a CI pipeline, and requires at least two HTTP requests and some docker orchestration to access generated code.
159
159
160
-
Example usage (note this assumes `jq` is installed for command line processing of JSON):
160
+
Example usage:
161
161
162
162
```sh
163
-
# Start container and save the container id
164
-
CID=$(docker run -d openapitools/openapi-generator-online)
163
+
# Start container at port 8888 and save the container id
164
+
> CID=$(docker run -d -p 8888:8080 -e GENERATOR_HOST=http://localhost:8888 openapitools/openapi-generator-online)
0 commit comments