This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Cobble
|
||||
|
||||
[](https://github.com/Moduletrace/cobble/actions/workflows/ci.yml)
|
||||
|
||||
A self-hosted crew of small AI worker bots.
|
||||
|
||||
Cobble gives you a coordinator bot and a crew of workers, each with its own
|
||||
|
||||
@@ -379,6 +379,7 @@ container_matches() {
|
||||
[ "$(docker_socket_mounted)" = "$DOCKER_SOCKET" ] || return 1
|
||||
[ "$(docker inspect -f '{{with index .HostConfig.PortBindings "'"$PORT"'/tcp"}}{{range .}}{{.HostIp}}:{{.HostPort}}{{end}}{{end}}' "$CONTAINER")" = "$BIND:$PORT" ] || return 1
|
||||
[ "$(docker inspect -f '{{.HostConfig.RestartPolicy.Name}}' "$CONTAINER")" = "unless-stopped" ] || return 1
|
||||
[ "$(docker inspect -f '{{.HostConfig.Init}}' "$CONTAINER")" = "true" ] || return 1
|
||||
docker inspect -f '{{range .Config.Env}}{{println .}}{{end}}' "$CONTAINER" | grep -qx "MAIN_SERVER=1" || return 1
|
||||
docker inspect -f '{{range .Config.Env}}{{println .}}{{end}}' "$CONTAINER" | grep -qx "PORT=$PORT" || return 1
|
||||
docker inspect -f '{{range $name, $net := .NetworkSettings.Networks}}{{println $name}}{{end}}' "$CONTAINER" | grep -qx "$NETWORK" || return 1
|
||||
|
||||
Reference in New Issue
Block a user