You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have just recently created a Docker image (still in our main branch), and we haven't released it yet. Once we do, we will publish it to docker hub under our own org.
We have just recently created a Docker image (still in our main branch), and we haven't released it yet. Once we do, we will publish it to docker hub under our own org.
@phernandez The .basic-memory/config.json isn't configured to use the mounted directory so the files mounted in /app/data don't get indexed. I ran into this while working on the bot, I think the PR probably needs a little more work.
OK, yeah @claude can you see the comment above about which file is configured for basic-memory in the Dockerfile and docker-compose.yml?
Previously we had a multi-user Dockerfile that was overly complicated. We simplified it but this fell through the cracks. We want the main project in the ~/.basic-memory/config.json to point to the mounted volume in the docker compose file.
Initialization script that runs on container startup
Creates proper config.json pointing to mounted /app/data directory
Only creates config if it doesn't exist or points to wrong directory
Preserves existing configurations when appropriate
2. Updated Dockerfile:
Added copy and setup of initialization script
Set script as ENTRYPOINT to run before main command
Maintains original CMD for basic-memory server startup
3. Updated docker-compose.yml:
Clarified comments about automatic configuration initialization
Now when the container starts, it will automatically configure the main project to use the mounted volume at /app/data, ensuring files are properly indexed.
Changes Committed:
✅ docker-init.sh - New initialization script
✅ Dockerfile - Updated to use initialization script
Activity
phernandez commentedon Jun 20, 2025
@claude how did this image get pushed to https://hub.docker.com/r/mcp/basic-memory? We don't have any process that pushes images in our ci, do we?
claude commentedon Jun 20, 2025
Claude finished @phernandez's task —— View job
Investigating Docker Image Push Process
I've analyzed your CI/CD workflows and Docker configuration. Here are my findings:
Todo List:
Findings:
Current CI/CD Workflows:
Docker Configuration Found:
Dockerfileexists (Python 3.12-slim based)docker-compose.ymlexists with full configurationdocs/Docker.mdcontains comprehensive Docker setup documentationAnswer to Your Question:
You're correct - you don't have any CI process that pushes Docker images.
The Docker image at
docker.io/mcp/basic-memoryshowing version 0.12.3 was NOT pushed through your automated CI/CD. It must have been:mcpDocker Hub organizationRecommendations:
To implement the feature requested in this issue, you would need to:
Add a Docker workflow to
.github/workflows/that:docker.io/mcp/basic-memoryConfigure Docker Hub secrets in your repository:
DOCKER_USERNAMEDOCKER_PASSWORDorDOCKER_TOKENDetermine the correct Docker Hub organization - currently pushing to
mcp/basic-memorybut you may wantbasicmachines-co/basic-memoryinsteadphernandez commentedon Jun 20, 2025
Hi @madanyang thanks for reporting this issue. This is a bit confusing, because the https://hub.docker.com/r/mcp/basic-memory image was not created by us. It looks to be from a different organization: https://hub.docker.com/u/mcp.
We have just recently created a Docker image (still in our main branch), and we haven't released it yet. Once we do, we will publish it to docker hub under our own org.
phernandez commentedon Jun 20, 2025
@claude can you make PR with a ci workflow to publish our Dockerfile to docker hub on release?
claude commentedon Jun 20, 2025
Claude finished @phernandez's task —— View job
Docker Hub Publishing Workflow Created ✅
I've created the CI workflow to automatically publish your Dockerfile to Docker Hub on releases.
Todo List:
I cannot directly modify workflow files due to security permissions. Please add this Docker job to your
.github/workflows/release.ymlfile manually:Required Setup:
1. Docker Hub Secrets
Add these secrets to your repository settings:
DOCKER_USERNAME: Your Docker Hub usernameDOCKER_PASSWORD: Your Docker Hub password or access token2. Docker Hub Repository
Ensure
basicmachines-co/basic-memoryrepository exists on Docker HubFeatures:
v*)latestand version-specific tagsbasicmachines-co/basic-memoryNext Steps:
release.ymlfilemadanyang commentedon Jun 20, 2025
Had no idea @phernandez
Glad to hear thanks in advance.
feat: add Docker CI workflow for automated image publishing (#153)
groksrc commentedon Jun 24, 2025
@phernandez The .basic-memory/config.json isn't configured to use the mounted directory so the files mounted in /app/data don't get indexed. I ran into this while working on the bot, I think the PR probably needs a little more work.
phernandez commentedon Jun 24, 2025
OK, yeah @claude can you see the comment above about which file is configured for basic-memory in the Dockerfile and docker-compose.yml?
Previously we had a multi-user Dockerfile that was overly complicated. We simplified it but this fell through the cracks. We want the main project in the ~/.basic-memory/config.json to point to the mounted volume in the docker compose file.
claude commentedon Jun 24, 2025
Claude finished @phernandez's task —— View job •
claude/issue-153-20250624_130954• Create PR ➔Docker Configuration Fixed ✅
I've successfully fixed the Docker configuration issue where the
.basic-memory/config.jsonwasn't configured to use the mounted directory.Todo List:
Analysis:
Current Setup:
BASIC_MEMORY_HOME=/app/databut this is overridden by the config/app/dataand config to/root/.basic-memory/app/dataExpected Config Format:
{ "projects": { "main": "/app/data" }, "default_project": "main", "env": "user", "log_level": "INFO", "sync_changes": true, "sync_delay": 1000 }Solution Implemented:
1. Created
docker-init.sh:/app/datadirectory2. Updated
Dockerfile:3. Updated
docker-compose.yml:Now when the container starts, it will automatically configure the main project to use the mounted volume at
/app/data, ensuring files are properly indexed.Changes Committed:
docker-init.sh- New initialization scriptDockerfile- Updated to use initialization scriptdocker-compose.yml- Updated commentsphernandez commentedon Jun 27, 2025
FYI, docker images are pushed to ghcr.io/basicmachines-co/basic-memory. @madanyang please use that image if you want to use the our official version.
madanyang commentedon Jun 27, 2025
Thanks @phernandez . Already pulled the image yet hadn't time to check it.