Comment on page
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.
- Docker
- Java 17
- Git
- Python 3.11+ and PIP
git clone https://github.com/LangStream/langstream
These commands will compile source, build the CLI tarball, and install Docker images.
cd langstream
pip install -r requirements.txt
./docker/build.sh
If you want to test local code changes, you can use
mini-langstream
.mini-langstream dev start
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:
mini-langstream dev build <service>
... or for all the services:
mini-langstream dev build
During the build, the latest CLI is created in the
bin
folder../bin/langstream --version
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 modified 1mo ago