blob: 86ae156054d70a6b5ac52e5d6e643aac75201adc [file] [log] [blame]
[Unit]
Description=Run Buildlets in Docker
After=network.target
[Install]
WantedBy=network-online.target
[Service]
Type=simple
# The (-n * -cpu) values must currently be <= number of host cores.
# The host has 20 cores 32GB ram, so the -n=5 (five containers) * -cpu=4 (four CPUs per container) == 20.
ExecStart=/usr/local/bin/rundockerbuildlet -basename=power_ -image=golang/builder -n=5 -cpu=4 -memory=6g --env=XXX
Restart=always
RestartSec=2
StartLimitInterval=0