Skip to content

Commit fdf1ac6

Browse files
authored
Enhance README with requirements and usage instructions
Added requirements and usage details for the Docker container.
1 parent 6ffaff2 commit fdf1ac6

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# cli-sandbox
22

3-
Run `gemini` and `claude` in a docker container
3+
Run `gemini` and `claude` in a docker container.
4+
5+
`iptables` is used inside the container to block all outbound traffic except GitHub, Anthropic, and Google Cloud internal IPs.
6+
7+
## Requirements
8+
9+
- docker
10+
- Need to pass `--cap-add=NET_ADMIN --cap-add=NET_RAW` to the `docker run` command for this image to configure the firewall
11+
- You will need to mount the codebase you want to work on inside the container
12+
- To persist your auth and settings for gemini and claude, you'll want to mount those directories into `/home/node` (see usage below)
413

514
## Usage
615

@@ -13,11 +22,15 @@ docker run \
1322
--cap-add=NET_ADMIN --cap-add=NET_RAW \
1423
-v ./:/workspace \
1524
-w /workspace \
16-
--rm -it ghcr.io/joecorall/cli-sandbox:main \
25+
--rm -it \
26+
ghcr.io/joecorall/cli-sandbox:main \
1727
"$CODE_CLI"
1828
# chit chat
1929
```
2030

31+
If you pass `gemini` or `claude` as the last argument to the `docker run` command you'll get dropped into the respective CLI. If you don't pass anything, you'll be in a bash shell and can run `claude` or `gemini` and switch between the two.
32+
2133
## Attribution
2234

23-
`Dockerfile` and `init-firewall.sh` forked from [anthropics/claude-code](https://github.com/anthropics/claude-code/tree/main/.devcontainer). Added gemini support
35+
- `Dockerfile` and `init-firewall.sh` forked from [anthropics/claude-code](https://github.com/anthropics/claude-code/tree/main/.devcontainer). Added gemini support
36+
- `download.sh` copied from [islandora-devops/isle-buildkit](https://github.com/Islandora-Devops/isle-buildkit/tree/main/base/rootfs/usr/local/bin)

0 commit comments

Comments
 (0)