6.2.2. Run the build worker image
Run this container on each build worker. Since the worker will be orchestrating docker builds, we need to mount in the docker socket. This orchestration will use a large amount of CPU and need to manipulate the docker images on disk — we recommend that dedicated machines be used for this task.
Use the environment variable SERVER to tell the worker the hostname at which Red Hat Quay is accessible:
Security | Websocket Address |
---|---|
Using SSL | wss://your.quayenterprise.dnsname |
Without SSL | ws://your.quayenterprise.dnsname |
Here’s what the full command looks like:
docker run --restart on-failure \ -e SERVER=ws://myquayenterprise \ --privileged=true \ -v /var/run/docker.sock:/var/run/docker.sock:Z \ quay.io/redhat/quay-builder:v3.3.4
# docker run --restart on-failure \
-e SERVER=ws://myquayenterprise \
--privileged=true \
-v /var/run/docker.sock:/var/run/docker.sock:Z \
quay.io/redhat/quay-builder:v3.3.4
When the container starts, each build worker will auto-register and start building containers once a job is triggered and it is assigned to a worker.
If Red Hat Quay is setup to use a SSL certificate that is not globally trusted, for example a self-signed certificate, Red Hat Quay’s public SSL certificates must be mounted onto the quay-builder container’s SSL trust store. An example command to mount a certificate found at the host’s /path/to/ssl/rootCA.pem looks like: