You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,15 @@
1
1
# cli-sandbox
2
2
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)
4
13
5
14
## Usage
6
15
@@ -13,11 +22,15 @@ docker run \
13
22
--cap-add=NET_ADMIN --cap-add=NET_RAW \
14
23
-v ./:/workspace \
15
24
-w /workspace \
16
-
--rm -it ghcr.io/joecorall/cli-sandbox:main \
25
+
--rm -it \
26
+
ghcr.io/joecorall/cli-sandbox:main \
17
27
"$CODE_CLI"
18
28
# chit chat
19
29
```
20
30
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
+
21
33
## Attribution
22
34
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