diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +* diff --git a/.gitignore b/.gitignore index 6eb5430..a1c716f 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ Cargo.lock.bak # never commit). Use .claude/settings.json for shared, reviewed # settings instead. .claude/settings.local.json + +Dockerfile +.dockerignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0fbbaf1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:26.4.0-slim +RUN apt-get update && apt install -y --no-install-recommends curl nano bash ca-certificates ssh git wget bash-completion \ + && rm -rf /var/lib/apt/lists/* +ENV PATH=$PATH:/agent-vm-work-dir/.local/.npm-global/bin:/agent-vm-work-dir/.local/bin +USER nobody +WORKDIR /agent-vm-work-dir +ENV HOME=/agent-vm-work-dir +CMD npm config set prefix /agent-vm-work-dir/.local/.npm-global && bash diff --git a/README.md b/README.md index 317fe4b..ee5f8f6 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,39 @@ launch. ## Quick start +**In Docker.** +```bash +docker build -t agent-vm-image . # build docker images + +install -dm4777 ~/agent-vm/agent-vm-work-dir # create catalog for persistent data,cache and credentials, into user home dir + +docker run --device /dev/kvm -v ~/agent-vm/agent-vm-work-dir:/agent-vm-work-dir -ti agent-vm-image # run docker container with agent + +npm install -g @wirenboard/agent-vm # or: npx @wirenboard/agent-vm + +curl -fsSL https://claude.ai/install.sh | bash #install claude client for authorization + +claude #run for login in claud.io ONLY https://github.com/wirenboard/agent-vm#credentials + +agent-vm setup # pulls the latest image from ghcr.io and verifies it boots + +curl -fsSL https://claude.ai/install.sh | bash + +agent-vm claude # or codex / opencode / shell +``` + + ```bash npm install -g @wirenboard/agent-vm # or: npx @wirenboard/agent-vm +curl -fsSL https://claude.ai/install.sh | bash #install claude client for authorization + +claude #run for login in claud.io, more details https://github.com/wirenboard/agent-vm#credentials + agent-vm setup # pulls the latest image from ghcr.io and verifies it boots cd ~/your-project + agent-vm claude # or codex / opencode / shell ```