Update README
This commit is contained in:
parent
7974e725d0
commit
3561a1bc46
1 changed files with 26 additions and 0 deletions
26
README.md
26
README.md
|
|
@ -1,3 +1,29 @@
|
||||||
# Dev Sandbox
|
# Dev Sandbox
|
||||||
|
|
||||||
This is a Dockerfile definition for a container that I use to sandbox my Pi coding agent.
|
This is a Dockerfile definition for a container that I use to sandbox my Pi coding agent.
|
||||||
|
This also contains my Pi coding agent configuration.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Set up Docker container
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t dev_sandbox .
|
||||||
|
```
|
||||||
|
|
||||||
|
Function I use to execute the sandbox:
|
||||||
|
```zsh
|
||||||
|
sandbox() {
|
||||||
|
if ! docker ps -a --format '{{.Names}}' | grep -q '^dev-sandbox$'; then
|
||||||
|
docker run -dit --name dev-sandbox \
|
||||||
|
--env-file ~/rescale/dev_sandbox/.env \
|
||||||
|
-v ~/repos:/workspace \
|
||||||
|
-v pi-state:/root/.pi \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
dev-sandbox:latest
|
||||||
|
else
|
||||||
|
docker start dev-sandbox 2>/dev/null
|
||||||
|
fi
|
||||||
|
docker exec -it dev-sandbox /bin/zsh
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue