Build just docker cli and set built in executors to 0
This commit is contained in:
parent
c6c2a53333
commit
fe3fd6d640
@ -19,7 +19,9 @@ RUN echo \
|
|||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
RUN apt-get install -y docker-ce-cli
|
||||||
|
|
||||||
|
COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
|
||||||
|
|
||||||
USER jenkins
|
USER jenkins
|
||||||
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"
|
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"
|
||||||
|
2
executors.groovy
Normal file
2
executors.groovy
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import jenkins.model.*
|
||||||
|
Jenkins.instance.setNumExecutors(0)
|
Loading…
x
Reference in New Issue
Block a user