cwpearson / azure-pipelines-agent

Self-hosted GPU agent for Azure Piplines with Docker
7 stars 3 forks source link

Lower CPU priority for #4

Open cwpearson opened 5 years ago

cwpearson commented 5 years ago

1) create a user that the docker agent will run as. This is done in the Dockerfile

RUN useradd -ms /bin/bash azp
USER azp
WORKDIR /home/azp

2) use /etc/security/limits.conf to raise the niceness of that user

RUN echo azp soft priority 20 >> /etc/security/limits.conf