blob: f44b2c5c52df28e21fe61f32be29834eedea4f7f [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, so the -n=5 (five containers) * -cpu=4 (four CPUs per container) == 20.
# TODO: Use -memory option once the docker/crun issues are fixed to support memory limits.
ExecStart=/usr/local/bin/rundockerbuildlet -basename=ppc64_ -image=golang/builder -n=5 -cpu=4 -memory= --env=host-linux-ppc64-osu
Restart=always
RestartSec=2
StartLimitInterval=0