Commit graph

4 commits

Author SHA1 Message Date
582038e009 Disallow running more than one instance of opercode
We don't want to let people run more than one instance of opencode
in one project directory, this will lead to chaos and then
they interfear with each other in weird ways like when one
stopps it crashes the other, etc.
2026-01-22 01:39:44 +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
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