Skip to content

Commit 7325456

Browse files
authored
refactor: rename user from agent to fulling, update associated paths, and adjust Dockerfile working directory. (#108)
1 parent 50a4f42 commit 7325456

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

sandbox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ RUN set -eux; \
195195
ttyd --version || true
196196

197197
# Set working directory for application
198-
WORKDIR /home/fulling
198+
WORKDIR /home/fulling/next
199199

200200
# -----------------------------------------------------------------------------
201201
# Copy configuration files (placed before user switch for better caching)

sandbox/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ docker run -d \
9898
docker run -d \
9999
-p 7681:7681 \
100100
-p 3000:3000 \
101-
-v $(pwd)/workspace:/home/agent/workspace \
101+
-v $(pwd)/workspace:/home/fulling/workspace \
102102
-e ANTHROPIC_AUTH_TOKEN="your-token" \
103103
ghcr.io/{owner}/fullstack-web-runtime:latest
104104
```
@@ -264,16 +264,16 @@ When submitting changes:
264264
- Container tools (Buildah, Podman)
265265
- Development tools
266266

267-
**Stage 2: User Environment** (as agent user)
267+
**Stage 2: User Environment** (as fulling user)
268268
- Next.js project initialization
269269
- shadcn/ui components installation
270270
- User-specific configurations
271271

272272
### Runtime Configuration
273273

274-
- **User**: agent (UID 1001, GID 1001)
275-
- **Home**: `/home/agent`
276-
- **Working Directory**: `/home/agent/next` (auto-cd on shell start)
274+
- **User**: fulling (UID 1001, GID 1001)
275+
- **Home**: `/home/fulling`
276+
- **Working Directory**: `/home/fulling/next` (auto-cd on shell start)
277277
- **Shell**: bash with custom prompt
278278
- **Entrypoint**: ttyd web terminal
279279

@@ -282,13 +282,13 @@ When submitting changes:
282282
- **Driver**: VFS (for compatibility)
283283
- **Runtime**: crun
284284
- **Cgroup Manager**: cgroupfs
285-
- **Storage Root**: `/home/agent/.local/share/containers/storage`
285+
- **Storage Root**: `/home/fulling/.local/share/containers/storage`
286286

287287
## Security Considerations
288288

289289
### Container Security
290-
1. **Non-Root User**: Runs as `agent` user (UID 1001)
291-
2. **Sudo Access**: Agent has passwordless sudo for development flexibility
290+
1. **Non-Root User**: Runs as `fulling` user (UID 1001)
291+
2. **Sudo Access**: fulling has passwordless sudo for development flexibility
292292
3. **Rootless Containers**: Buildah/Podman configured for rootless operation
293293

294294
### Network Security
@@ -362,7 +362,7 @@ docker exec <container-id> which claude
362362

363363
**Problem**: Buildah permission denied
364364
```bash
365-
# Ensure running as agent user
365+
# Ensure running as fulling user
366366
docker exec <container-id> whoami
367367

368368
# Check storage configuration

0 commit comments

Comments
 (0)