distcc image The purpouse of this image is to create a swarm stack of distcc services. This has been archieved with the following parameteres in the main docker-compose.yml.
version: '3.3'
services:
distcc:
image: mercuriete/distcc
environment:
- NETWORK=192.168.1.0/24
#bypass routing mesh to avoid load balancing
ports:
- target: 3632
published: 3632
protocol: tcp
mode: host
#Only one instance per node
deploy:
mode: global
With port mode host we are bypassing the routing mesh. See documentation.
With deploy mode global we are forcing one and only one instance per node on our swarm cluster. See documentation.
The prerequisites is have at least one node of docker swarm. See documentation.
git clone https://github.com/mercuriete/docker-distcc.git && \
cd docker-distcc && \
docker stack deploy --compose-file=docker-compose.yml distcc
192.168.1.2,cpp,lzo 192.168.1.3,cpp,lzo 192.168.1.4,cpp,lzo
cpp is for pump and lzo is for compress the transfers.
pump distcc g++ -c hello_world.cpp
or
pump make -j`distcc -j` CC="distcc gcc"
If you want to learn more, read the doc of distcc
Hope you enjoy this repo.
This repo was forked from https://github.com/choldrim/docker-distcc and this repo doesn't specify any license so I am relicensing to: Do what the fuck you want to public license
Content type
Image
Digest
Size
137.9 MB
Last updated
almost 8 years ago
docker pull mercuriete/distcc