-
Notifications
You must be signed in to change notification settings - Fork 28
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
[cli] Add a tool to run locally an application on docker #393
Conversation
Files.write(tmpInstanceFile.toPath(), instanceContents.getBytes(StandardCharsets.UTF_8)); | ||
File tmpSecretsFile = Files.createTempFile("secrets", ".yaml").toFile(); | ||
Files.write(tmpSecretsFile.toPath(), secretsContents.getBytes(StandardCharsets.UTF_8)); | ||
String imageName = "langstream/langstream-runtime-tester:latest-dev"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make this configurable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably in this case it's better to push a "latest" for the runtime-tester image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be configurable and it should use "some release", ideally the same version of the CLI
I am committing this first part of the PR. |
Goals:
allow users to quickly iterate over the configurations without needing to deploy the application to a kubernetes cluster
Summary:
How to run the tool:
bin/langstream docker run -app /path/to/app -i /path/to/instance -s /path/to-secrets --start-broker=true|false --start-s3=true|false
it is the same command as "apps deploy" but you use "local-run" instead of "deploy".
As the environment is ephemeral you must always pass the instance.yaml and the secrets.yaml files
By default we also start Kafka and Minio, you can control them by using --start-broker and --start-s3
Limitations of the "local mode":