-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat: add new compose file for local build and selinux enabled #1846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 12 commits
3336e37
0795147
2a92883
080fa84
3b75ce9
5978a53
aff41ae
3284692
c79e18f
15fc12b
b6a036b
57e8c98
888ca47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # βββββββββββββββββββββββββββββββββββββββββββββ | ||
| # PicoClaw Agent and PicoClaw Gateway should not be run together | ||
| # βββββββββββββββββββββββββββββββββββββββββββββ | ||
| services: | ||
| # βββββββββββββββββββββββββββββββββββββββββββββ | ||
| # PicoClaw Agent (one-shot query) | ||
| # docker compose -f docker/docker-compose.local.yml --profile agent run --rm picoclaw-agent -m "Hello" | ||
| # podman compose -f docker/docker-compose.local.yml --profile agent run --rm picoclaw-agent -m "Hello" | ||
| # βββββββββββββββββββββββββββββββββββββββββββββ | ||
| picoclaw-agent: | ||
| build: | ||
| context: .. | ||
| dockerfile: docker/Dockerfile | ||
|
Comment on lines
+11
to
+13
|
||
| userns_mode: "keep-id" | ||
| user: "${UID:-1000}:${GID:-1000}" | ||
| container_name: picoclaw-agent | ||
| # Default: SELinux disabled for testing. In production, remove 'label=disable' | ||
| # and implement a seccomp profile for better security. | ||
| security_opt: | ||
| - label=disable | ||
|
Comment on lines
+17
to
+23
|
||
| profiles: | ||
|
Comment on lines
+22
to
+24
|
||
| - agent | ||
| # Uncomment to access host network; leave commented unless needed. | ||
| #extra_hosts: | ||
| # - "host.docker.internal:host-gateway" | ||
| environment: | ||
| - PICOCLAW_HOME=/home/picoclaw/.picoclaw | ||
| # Uncomment for Podman pod health check compatibility | ||
| # - PICOCLAW_GATEWAY_HOST=0.0.0.0 | ||
| volumes: | ||
| - ./data:/home/picoclaw/.picoclaw:Z | ||
|
Comment on lines
+17
to
+34
|
||
| entrypoint: ["picoclaw", "agent"] | ||
|
Comment on lines
+33
to
+35
|
||
| stdin_open: true | ||
| tty: true | ||
|
|
||
| # βββββββββββββββββββββββββββββββββββββββββββββ | ||
| # PicoClaw Gateway (Long-running Bot) | ||
| # docker compose -f docker/docker-compose.local.yml --profile gateway up -d | ||
| # podman compose -f docker/docker-compose.local.yml --profile gateway up -d | ||
| # βββββββββββββββββββββββββββββββββββββββββββββ | ||
| picoclaw-gateway: | ||
| build: | ||
| context: .. | ||
| dockerfile: docker/Dockerfile | ||
| userns_mode: "keep-id" | ||
| user: "${UID:-1000}:${GID:-1000}" | ||
| # Default: SELinux disabled for testing. In production, remove 'label=disable' | ||
| # and implement a seccomp profile for better security. | ||
| security_opt: | ||
| - label=disable | ||
| container_name: picoclaw-gateway | ||
|
Comment on lines
+55
to
+57
|
||
| restart: unless-stopped | ||
| profiles: | ||
| - gateway | ||
| # Uncomment to access host network; leave commented unless needed. | ||
| #extra_hosts: | ||
| # - "host.docker.internal:host-gateway" | ||
| environment: | ||
| - PICOCLAW_HOME=/home/picoclaw/.picoclaw | ||
| # Uncomment for Podman pod health check compatibility | ||
| # - PICOCLAW_GATEWAY_HOST=0.0.0.0 | ||
| volumes: | ||
| - ./data:/home/picoclaw/.picoclaw:Z | ||
|
Comment on lines
+68
to
+69
|
||



There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The usage examples in these header comments reference
docker/docker-compose.yml, but this file isdocker/docker-compose.local.yml. This is likely to mislead users (and the PR description usespodman compose -f docker/docker-compose.local.yml ...). Update the examples to point at the correct compose file (and, if intended, the correct CLI).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated