Commit graph

10 commits

Author SHA1 Message Date
941140581c Update readme with important features 2026-01-22 01:39:26 +09:00
a56da84b7a Prepopulate container-home with project dirs
This is to fix the problem with docker creating those directories
to mount it inside of the container-home. This only happens when
the project path is inside of $HOME which is mounted to the
.local/share/opencode-container/cantainer-home

With it like this, the empty directories are owned by the local
user and not root and it's easier to clean up in the future.
2026-01-22 01:08:18 +09:00
8171760807 Add cleanup script 2026-01-22 00:29:20 +09:00
c387a7a365 Fix container username and home mount 2026-01-21 23:58:15 +09:00
fc2e5b1bca Replace docker compose with persistent per-project lifecycle
Move from docker compose run to a Python-managed container lifecycle.
Each project now gets a dedicated container that is started on demand
and stopped when opencode exits, instead of being recreated each time.

Use a shared home directory across projects so configurations presist.

The container are not destroyed, so tools and caches can be installed
specifically for a project by opencode itself once and reused, while
still avoiding long-running containers.
2026-01-21 21:33:30 +09:00
57ef6454c6 Fix README data -> container-home 2026-01-15 12:20:26 +09:00
b1f356c5f5 Fix problem where container home was seperate for each project dir
The problem was that we mounted `pwd` as HOME and that meant that
every time git was used it would look into the data and work for a
long time, and it would also commit everything there.

Now we have a central container-home directory in the directory
where we checked out this git repo and it is used by each session
independent of in which project directory we are.
2026-01-15 12:19:07 +09:00
f479a613a0 Fix problem with arguments
It was impossible to have several arguments while calling
opencode in the container like `opencode auth list`, it would
just break. With this change this also works.
2026-01-14 10:50:42 +09:00
39edc252f0 Simplify state persistence
Use use local ./data directory instead of
XDG directories.
2026-01-13 14:47:56 +09:00
c3e9e2b40b Initial commit 2026-01-13 13:48:49 +09:00