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.
This commit is contained in:
parent
f479a613a0
commit
b1f356c5f5
6 changed files with 27 additions and 21 deletions
|
|
@ -24,6 +24,11 @@ git clone https://git.jeena.net/jeena/opencode-container.git
|
|||
Source the helper file `opencode.aliases` in your shell configuration
|
||||
(`.bashrc` or `.zshrc`) so the `opencode` function is available in new sessions.
|
||||
|
||||
We set up the ./container-home directory as a central $HOME inside of the
|
||||
container, independent of the session or project directory we start in. This
|
||||
presists the whole $HOME from inside the container so everything opencode
|
||||
writes into config files, etc. presists there.
|
||||
|
||||
## Usage
|
||||
|
||||
From any project directory:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue