Skip to content

Commit d8c6bc0

Browse files
alexsteeelclaude
andcommitted
feat: enhance init command with auto-fill, smart file handling, and custom DinD support
- Add auto-fill for custom Docker images during reconfiguration - Implement smart init.secure.sh handling with user prompts - Simplify init.secure.sh template - Add support for custom Docker-in-Docker images - Rename init scripts for consistency (init-project.sh -> init.sh, secure.init.sh -> init.secure.sh) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 36e36b2 commit d8c6bc0

File tree

10 files changed

+270
-171
lines changed

10 files changed

+270
-171
lines changed

.devcontainer/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ docker-compose.base.yaml
99

1010
# Project configuration (generated by init-project)
1111
ai-sbx.yaml
12-
secure.init.sh
12+
init.secure.sh

.devcontainer/CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cp .env.example .env
1818
# Edit .env as needed
1919

2020
# Initialize (first time only)
21-
./init-project.sh /path/to/your-project
21+
./init.sh /path/to/your-project
2222

2323
# Start services
2424
docker compose up -d
@@ -30,7 +30,7 @@ The devcontainer can also be started using the DevContainer CLI:
3030
devcontainer up --workspace-folder .
3131
```
3232

33-
**Note**: The `init-project.sh` script accepts the project directory as an argument, which is automatically passed by `devcontainer.json` during initialization.
33+
**Note**: The `init.sh` script accepts the project directory as an argument, which is automatically passed by `devcontainer.json` during initialization.
3434

3535
## Configuration Files
3636

@@ -126,7 +126,7 @@ One-time setup script that performs critical host setup:
126126

127127
Run once per project:
128128
```bash
129-
./init-project.sh /absolute/path/to/project
129+
./init.sh /absolute/path/to/project
130130
```
131131

132132
This script MUST be run before starting the devcontainer to ensure proper permissions.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"shutdownAction": "stopCompose",
77
"containerUser": "claude",
88
"updateRemoteUserUID": false,
9-
"initializeCommand": ".devcontainer/init-project.sh \"${localWorkspaceFolder}\"",
9+
"initializeCommand": ".devcontainer/init.sh \"${localWorkspaceFolder}\"",
1010
"postCreateCommand": "/home/claude/scripts/non-root-post-create.sh",
1111
"containerEnv": {
1212
"TERM": "xterm-256color",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# This file contains credentials and sensitive data - NEVER commit to git!
44
#
55
# To use:
6-
# 1. Copy this file to secure.init.sh
6+
# 1. Copy this file to init.secure.sh
77
# 2. Add your credentials and sensitive configuration
88
# 3. The file will be automatically copied to new worktrees
9-
# 4. secure.init.sh is in .gitignore and won't be committed
9+
# 4. init.secure.sh is in .gitignore and won't be committed
1010

1111
echo "Running secure initialization..."
1212

0 commit comments

Comments
 (0)