Build and install from source
LangStream uses Maven as its build system. When the below script is run the project source will be tested and compiled, and the container images will be built.
Requirements
Docker
Java 17
Git
Python 3.11+ and PIP
Clone the project
This will clone the latest code of the project into the "langstream" folder.
Build the project
These commands will compile source, build the CLI tarball, and install Docker images.
Test local changes with mini-langstream
If you want to test local code changes, you can use mini-langstream
.
This command will build the images in the minikube
context and install all the LangStream services with the snapshot image.
Once the cluster is running, if you want to build and load a new version of a specific service, run:
... or for all the services:
Locate the CLI
During the build, the latest CLI is created in the bin
folder.
Please note that this CLI uses the conf/cli.yaml file for configuration, and it does not behave the same way as the CLI installed with brew, which uses the $HOME/.langstream/config file with a different format.
Last updated