based on linuxserver/baseimage-kasmvnc:ubuntunoble add xfce gui and Antigravity Tools, and startup agmt with boot.
remember to enable net.ipv4.ip_forward=1 in /etc/sysctl.conf
Important: This container MUST run as
root(PUID=0, PGID=0). Normal user permissions are NOT supported due to DBus/GTK limitations in this environment.
I'm using this as router, so I've decided make default running root user for TUN mode and add zerotier controled by environment variable ZT==true.
Default config path is /config/.antigravity_tools with cmd /usr/bin/agmt.
This image also installs antigravity CLI in /usr/bin/antigravity.
or You can use the wrapper command agvc to directly run it.
Note:
agvcalso relies on the container running asroot.
make build
# Or manually:
# docker buildx build --platform linux/amd64 --build-arg VERSION=$(cat VERSION) -t docker-agmt .version: "3.9"
services:
antigravity-tools:
image: docker-agmt
# image: dogbutcat/agmt
container_name: agmt
restart: unless-stopped
environment:
- PUID=0
- PGID=0
- USER=root
# - ZT=true
# Change internal port if 3000 is taken on host mode
- CUSTOM_PORT=3000
- CUSTOM_HTTPS_PORT=3001
ports:
- "3000:3000"
network_mode: host
volumes:
- home:/config
- "agmt-data:/config/.antigravity_tools"
- "agv-data:/agv-data/"
- "gemini-data:/config/.gemini"
- "zerotier:/var/lib/zerotier-one"
- "mozilla:/config/.config/mozilla"
cap_add:
- NET_ADMIN
- SYS_MODULE
security_opt:
- seccomp=unconfined
shm_size: "1gb"
volumes:
- home
- agmt-data
- agv-data
- gemini-data
- zerotier
- mozilla