Skip to content
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

mini-langstream getting started (deploy sample app) fails with: Missing required option: '--instance=<instanceFilePath>' #704

Open
Gagravarr opened this issue Nov 8, 2023 · 0 comments

Comments

@Gagravarr
Copy link
Contributor

If you follow the MiniKube getting started documentation, then at https://docs.langstream.ai/installation/get-started-minikube#start-the-cluster in step 3 the deployment of the example application fails

image

export OPENAI_API_KEY=(removed)
mini-langstream cli apps deploy my-app -app https://github.com/LangStream/langstream/tree/main/examples/applications/openai-completions -s https://github.com/LangStream/langstream/blob/main/examples/secrets/secrets.yaml

Missing required option: '--instance=<instanceFilePath>'

Deploy an application
Usage: langstream apps deploy [-hV] [--dry-run] -app=<appPath>
                              -i=<instanceFilePath> [-o=<format>]
                              [-s=<secretFilePath>] <name>
      <name>      Name of the application
      -app, --application=<appPath>
                  Application directory path
      --dry-run   Dry-run mode. Do not deploy the application but only resolves
                    placeholders and display the result.
  -h, --help      Show this help message and exit.
  -i, --instance=<instanceFilePath>
                  Instance file path
  -o=<format>     Output format for dry-run mode. Formats are: yaml, json.
                    Default value is yaml.
  -s, --secrets=<secretFilePath>
                  Secrets file path
  -V, --version   Print version information and exit.

When you run mini-langstream start it suggests a different sample command of

mini-langstream cli apps deploy app -i $(mini-langstream get-instance) -s https://raw.githubusercontent.com/LangStream/langstream/main/examples/secrets/secrets.yaml -app https://github.com/LangStream/langstream/tree/main/examples/applications/python-processor-exclamation

Adding -i $(mini-langstream get-instance) to the command from the getting started allows it to deploy without error

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

No branches or pull requests

1 participant