sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install -y python3.12
sudo apt install -y python3.12-dev
# sudo apt install -y python3.12-venv
sudo apt upgrade
Python 3 -> Additional Options -> 3.12-bookworm -> Trust @devcontainers-contrib -> Keep Defaults
sudo apt update
sudo apt install pipx
sudo pipx ensurepath
pipx install poetry
# pipx install poetry --python /usr/bin/python3.12
poetry shell
poetry install --no-root
npm install -g @xata.io/cli@latest
xata auth login
xata schema dump --file src/tools/lca_data_schema/schema_origin.json
The auto build will be triggered by pushing any tag named like release-v$version. For instance, push a tag named as v0.0.1 will build a docker image of 0.0.1 version.
#list existing tags
git tag
#creat a new tag
git tag v0.0.1
#push this tag to origin
git push origin v0.0.1
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_API_KEY=your_api_key
docker build -t 339712838008.dkr.ecr.us-east-1.amazonaws.com/kaiwu-gpts:0.0.1 .
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 339712838008.dkr.ecr.us-east-1.amazonaws.com
docker push 339712838008.dkr.ecr.us-east-1.amazonaws.com/kaiwu-gpts:0.0.1
Copy secrets_dev.toml to secrets.toml and fill in the real secrets.
make lint
make format