Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[next-v5] Allow Swagger file to be set locally via docker #5119

Open
tokidoki11 opened this issue Jun 5, 2024 · 3 comments
Open

[next-v5] Allow Swagger file to be set locally via docker #5119

tokidoki11 opened this issue Jun 5, 2024 · 3 comments

Comments

@tokidoki11
Copy link

Description

I only run docker swagger v5 (alpha96) without building the react

in version 4 you can specify env variable to set the definition file location
docker run -d -p 80:8080 -v $(pwd):/tmp -e SWAGGER_FILE=/tmp/swagger.json swaggerapi/swagger-editor

Currently I think it only support default file definition by building react yourself via .env file

Describe the solution you'd like

allow SWAGGER_FILE env variable to setup default file on docker run

Describe alternatives you've considered

Additional context

@dante-saggin
Copy link

dante-saggin commented Jun 11, 2024

nice I was wandering about the same thing.
In fact, I was expecting that it could read it from an environment variable in the docker container.

@dev-comrade
Copy link

i hope somebody make answer, how to load local file straightaway after start docker container

@ShlomiPorush
Copy link

same here.... loading the file every time in editor and download it & upload up to UI is a boring task

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants