Skip to content
1maPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

claudibox

Script per córrer Claude Code en un contenidor Debian 13 a Incus amb certa configuració precarregada (CLAUDE.md i settings.json).

Instal·lació

$ ./init.sh
$ incus exec claudibox -- sudo -iu bofh
$ cd workspace/project
$ claude

Es pot crear un alias a ~/.bashrc per no haver de recordar la comanda exec:

alias claudibox='incus exec claudibox -- sudo -iu bofh'

Docker i Incus poden tenir conflictes de xarxa si corren al mateix host. He configurat el meu servei de Docker així:

$ cat /etc/docker/daemon.json 
{
  "ip-forward-no-drop": true
}

Font: https://linuxcontainers.org/incus/docs/main/howto/network_bridge_firewalld/#network-incus-docker

Assumpcions

  • El host és una màquina Linux i té Incus instal·lat.
  • Els projectes de git del host estan tots a $HOME/workspace
  • L'usuari del host té UID 1000

Gestió del contenidor

$ incus list
+-----------+---------+--------------------+------------------------------------------------+-----------+-----------+                                                                                                                   
|   NAME    |  STATE  |        IPV4        |                      IPV6                      |   TYPE    | SNAPSHOTS |                                                                                                                   
+-----------+---------+--------------------+------------------------------------------------+-----------+-----------+
| claudibox | RUNNING | 10.84.27.98 (eth0) | fd42:d5e3:5ea4:a41a:1266:6aff:fe68:300c (eth0) | CONTAINER | 0         |
+-----------+---------+--------------------+------------------------------------------------+-----------+-----------+
$ incus stop claudibox 
$ incus list
+-----------+---------+------+------+-----------+-----------+
|   NAME    |  STATE  | IPV4 | IPV6 |   TYPE    | SNAPSHOTS |
+-----------+---------+------+------+-----------+-----------+
| claudibox | STOPPED |      |      | CONTAINER | 0         |
+-----------+---------+------+------+-----------+-----------+
$ incus delete claudibox

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages