What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello guys, how can i load in docker under swagger in docker the glue documentation g
Comments
-
docker run -p 8080:8080 -e BASE_URL=/swagger -e SWAGGER_JSON=/var/specs/swagger.yml -v $(pwd)/src/Generated/Glue/Specification/spryker_rest_api.schema.yml:/var/specs/swagger.yml swaggerapi/swagger-ui
0 -
And open localhost:8080/swagger
0 -
I see this
0 -
it works!
0 -
And the question. Why it does not work for swagger in docker setup as it is the same?
0 -
docker inspect spryker_b2b_dev_swagger_1
0 -
i don't know..
maybe swagger is expecting swagger.yml file and not spryker_rest_api..... filename... because the mount works in docker setup0 -
question: it does work on your b2b local docker?
0 -
It does not matter you can change swagger.yml with any other name in the command I gave.
0 -
ok..
0 -
strange.. i can debug in deep maybe later or tomorrow and i can ping u if i find smth...
0 -
This swagger stuff is so isolated - it does not care on the project. As only mount and env var is set.
0 -
yes i see
0 -
docker inspect spryker_b2b_dev_swagger_1 | grep spryker_rest_api
docker inspect spryker_b2b_dev_swagger_1 | grep SWAGGER_JSON
0 -
List the output here please. Thanks
0 -
first command:
"SWAGGER_JSON=/var/specs/spryker_rest_api.schema.yml",
second command:
"SWAGGER_JSON=/var/specs/spryker_rest_api.schema.yml",
0 -
docker inspect -f '{{ .Mounts }}' spryker_b2b_dev_swagger_1
0 -
But as I remember file was there.
0 -
[{bind /Volumes/Loeffelhardt-Projekte/el-online.loeffelhardt.local/project/src/Generated/Glue/Specification /var/specs rw true rprivate}]
0 -
it seem good...
i will try today by my collegue docker instance... in the case there works then it is only smth strange on my system...
0 -
Strange - it must work.
Ok. Let’s do the reset.
docker/sdk down
docker rm spryker_b2b_dev_swagger_1
docker/sdk run0 -
ok.. i will try and give u feedback in 1 hour...
0 -
it works now!!
0 -
thank u!
0 -
Hmm. It seems swagger just keeps some state internally.
0 -
probably yes...
0 -
We are willing to change the behavior completely by introducing Glue endpoint for specification. At that point it won’t go via file but URL.
0 -
Thank you for using our docker SDK and feedbacks!
0 -
yes... your docker SDK is very good!! thank u!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random