Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: add docker nightly publish and use `letta/letta` repo (#2005)

Sarah Wooders66a9539346a6
diff --git a/.github/workflows/docker-image-nightly.yml b/.github/workflows/docker-image-nightly.yml
new file mode 100644
index 000000000..aff0b514c
--- /dev/null
+++ b/.github/workflows/docker-image-nightly.yml
@@ -0,0 +1,27 @@
+name: Docker Image CI (nightly)
+
+on:
+ schedule:
+ - cron: '35 10 * * *' # 10:35am UTC, 2:35am PST, 5:35am EST
+ release:
+ types: [published]
+ workflow_dispatch:
+
+jobs:
+
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - uses: actions/checkout@v3
+ - name: Build and push the Docker image (letta)
+ run: |
+ docker build . --file Dockerfile --tag letta/letta:nightly
+ docker push letta/letta:nightly
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index 673638be8..102c7f0c8 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -28,10 +28,10 @@ jobs:
docker push memgpt/letta:latest
- uses: actions/checkout@v3
- - name: Build and push the Docker image (lettaai)
+ - name: Build and push the Docker image (letta)
run: |
# Extract the version number from pyproject.toml using awk
CURRENT_VERSION=$(awk -F '"' '/version =/ { print $2 }' pyproject.toml | head -n 1)
- docker build . --file Dockerfile --tag lettaai/letta:$CURRENT_VERSION --tag lettaai/letta:latest
- docker push lettaai/letta:$CURRENT_VERSION
- docker push lettaai/letta:latest
+ docker build . --file Dockerfile --tag lettaai/letta:$CURRENT_VERSION --tag letta/letta:latest
+ docker push letta/letta:$CURRENT_VERSION
+ docker push letta/letta:latest
diff --git a/letta/agent_store/db.py b/letta/agent_store/db.py
index 0b00e2add..531641d64 100644
--- a/letta/agent_store/db.py
+++ b/letta/agent_store/db.py
@@ -578,4 +578,6 @@ class SQLLiteStorageConnector(SQLStorageConnector):
def attach_base():
# This should be invoked in server.py to make sure Base gets initialized properly
# DO NOT REMOVE
- print("Initializing database...")
+ from letta.utils import printd
+
+ printd("Initializing database...")
diff --git a/letta/log.py b/letta/log.py
index 5977daf21..8d947c509 100644
--- a/letta/log.py
+++ b/letta/log.py
@@ -56,7 +56,7 @@ DEVELOPMENT_LOGGING = {
"propagate": False,
},
"uvicorn": {
- "level": "INFO",
+ "level": "CRITICAL",
"handlers": ["console"],
"propagate": False,
},