Browser Docker client
A web page that configures and runs a container, streams its logs, and hands back its outputs. Embeddable in any site as an iframe.
A queue is a URL. A job is a Docker container. Push work from a browser or a backend with no authentication and no setup, then add compute by running one command on any machine you own.
# 1. pick any queue name — unguessable means private
QUEUE=my-$(uuidgen | tr 'A-Z' 'a-z')
# 2. add compute: this machine now works that queue
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp \
metapage/metaframe-docker-worker:0.54.80 run --cpus=2 $QUEUE
# 3. push a job from anywhere
curl -s -X POST https://container.mtfm.io/q/$QUEUE \
-H 'content-type: application/json' \
-d '{"definition":{"image":"alpine:3.19.1","command":"sh -c \"echo hi > /outputs/out.txt\""}}'