studio
studio copied to clipboard
load spec file via Docker volume
Reason/Context
I want to be able to spin up a docker container that has the asyncapi.yaml file either passed as a bind mount or env variable, to be able to load that as soon as the container starts, instead of doing that step manually
Description
As a user of this Docker image I wanna be able to reference a Docker volume or env variable and automatically load the configuration on container start. If this is already present, at least document this feature, I had to clone the project, look it all up and still could not find a proper solution for this
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
@steevehook Hi! Thanks for the issue! Atm we don't have such a feature for Docker image. We are open for contributions, so if you wanna contribute, you're welcome :)
Then I guess, PR incoming 😄
Hey!! I've made PR which solves this issue.
It is not only useful for local development but also hosting own specification. There's usecase that you want to publish your api specification on S3, or Netlify. Currently, asyncapi cannot satisfy that usecase.
If this PR is merged, you can do this:
$ npm run build
$ rm -r build/docs/asyncapi
$ cp -r ../another/path/to/asyncapi build/docs/
@magicmatatjahu You were about to help this issue, did you change your mind? I dedicated my weekend to contribute this project, but there's no any feedback after 3 weeks.
@rikuson Hi. Sorry for the delay. I'll check it out, don't worry. I've been sick and have to handle all the notifications.
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart: