From fff4cc931fd6137334ba60a9e3683d0619e6c943 Mon Sep 17 00:00:00 2001 From: Che <30403707+Che-Zhu@users.noreply.github.com> Date: Tue, 2 Dec 2025 22:07:29 +0800 Subject: [PATCH] refactor: rename user from `agent` to `fulling`, update associated paths, and adjust Dockerfile working directory. --- sandbox/Dockerfile | 2 +- sandbox/README.md | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sandbox/Dockerfile b/sandbox/Dockerfile index 865f301..b313ccd 100644 --- a/sandbox/Dockerfile +++ b/sandbox/Dockerfile @@ -195,7 +195,7 @@ RUN set -eux; \ ttyd --version || true # Set working directory for application -WORKDIR /home/fulling +WORKDIR /home/fulling/next # ----------------------------------------------------------------------------- # Copy configuration files (placed before user switch for better caching) diff --git a/sandbox/README.md b/sandbox/README.md index a6d3cb1..9da383e 100644 --- a/sandbox/README.md +++ b/sandbox/README.md @@ -98,7 +98,7 @@ docker run -d \ docker run -d \ -p 7681:7681 \ -p 3000:3000 \ - -v $(pwd)/workspace:/home/agent/workspace \ + -v $(pwd)/workspace:/home/fulling/workspace \ -e ANTHROPIC_AUTH_TOKEN="your-token" \ ghcr.io/{owner}/fullstack-web-runtime:latest ``` @@ -264,16 +264,16 @@ When submitting changes: - Container tools (Buildah, Podman) - Development tools -**Stage 2: User Environment** (as agent user) +**Stage 2: User Environment** (as fulling user) - Next.js project initialization - shadcn/ui components installation - User-specific configurations ### Runtime Configuration -- **User**: agent (UID 1001, GID 1001) -- **Home**: `/home/agent` -- **Working Directory**: `/home/agent/next` (auto-cd on shell start) +- **User**: fulling (UID 1001, GID 1001) +- **Home**: `/home/fulling` +- **Working Directory**: `/home/fulling/next` (auto-cd on shell start) - **Shell**: bash with custom prompt - **Entrypoint**: ttyd web terminal @@ -282,13 +282,13 @@ When submitting changes: - **Driver**: VFS (for compatibility) - **Runtime**: crun - **Cgroup Manager**: cgroupfs -- **Storage Root**: `/home/agent/.local/share/containers/storage` +- **Storage Root**: `/home/fulling/.local/share/containers/storage` ## Security Considerations ### Container Security -1. **Non-Root User**: Runs as `agent` user (UID 1001) -2. **Sudo Access**: Agent has passwordless sudo for development flexibility +1. **Non-Root User**: Runs as `fulling` user (UID 1001) +2. **Sudo Access**: fulling has passwordless sudo for development flexibility 3. **Rootless Containers**: Buildah/Podman configured for rootless operation ### Network Security @@ -362,7 +362,7 @@ docker exec which claude **Problem**: Buildah permission denied ```bash -# Ensure running as agent user +# Ensure running as fulling user docker exec whoami # Check storage configuration