Closed benmandrew closed 1 year ago
On my machine web
is currently failing with:
Failed to connect to backend: Failure("Failed: Network connection for tcp:service:8102 failed:\n Unix.Unix_error(Unix.ECONNREFUSED, \"connect\", \"\")")
Two new containers have been added:
solver-worker
for doing local solvesscheduler-cap
for generating the capability file needed by service
to submit jobs to scheduler
The docker compose setup does not include a GitLab service container. The documentation for running the GitLab service locally has been moved to its own file doc/gitlab-dev.md
due to doc/dev.md
now being about running the docker compose rather than setting up each component manually, as it was before. There may be a better solution for this.
Is this inspired from docs-ci https://github.com/ocurrent/ocaml-docs-ci/blob/main/docker-compose.yml ? Otherwise you could find some useful thing there too.
The tested stack currently involves:
service
, the OCaml-CI service for GitHub.web
, the front-end web interface.scheduler
, for scheduling jobs.worker
, a single Docker-based worker. I'm on Mac, and the default rsync didn't work first time so I just set it to Docker.caddy
, for reverse proxy stuff (unsure if necessary).Rebased on top of the contents of #883.
To run
In
docker-compose.yml
, change the file paths under thesecrets
label to point to your own relevant local files.scheduler
,worker
andcaddy
pull pre-built images from Docker Hub;service
andweb
must be built as local images by running:Create a file at
/etc/caddy/Caddyfile
containing:https://localhost { reverse_proxy web:8090 }