-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run JetStream without command #110
Comments
Hi @Lancetnik, are you saying you don't want to pass a command argument to docker run? e.g.
If so, why? The alternative is to create a config file and mount it at
Where the config file would, at a minimum, be:
Out of curiosity, what is the use case for running it in Github Actions? |
I am working on event-driven framework and should test a huge part of functions on a real external dependencies. |
GHA syntax pretty close to nats:
image: nats
command: -js
ports:
- 4222:4222
- 8222:8222 |
@bruth anyway, thx for the answer. Will try to include config volume to my CI |
Agree something more flexible in the container would be nice. But there are some options as pointed out, I do it by just replacing the entry point until something better exist. As nats (and the containers) are open source you are welcome to contribute improvements. |
@ripienaar thanks, it looks better than config as a volume |
@Lancetnik Understood regarding the env-to-config pattern for containers. It simply has not been something strongly requested, so supported was not added proactively. A simple option would be to support However, in the meantime, go with @ripienaar's suggestion to not deal with the volume. |
Looks worse, I suppose, cuz u need to merge it with a command-line args and solve duplications |
Is any abilities to configure
nats
conatiner to run with JetStream mode without using command argument (special label, env variable, etc)?Now I can't find any official solution to run NatsJS as a Github Action service (GHA doesn't support command attribute).
I don't wont to use or create custom image on top of the official one, suppose, should be a legal solution.
The text was updated successfully, but these errors were encountered: