Skip to content

Commit

Permalink
kie-issues#710: configure dind image (#1127)
Browse files Browse the repository at this point in the history
Co-authored-by: jstastny-cz <[email protected]>
  • Loading branch information
jstastny-cz and jstastny-cz authored Nov 28, 2023
1 parent d1b4108 commit c0bd0f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .ci/jenkins/config/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ jenkins:
# At some point, this image will need to be changed when a release branch is created
# but we need to make sure the image exists first ... simple tag before setting up the branch ?
# See https://github.com/kiegroup/kie-issues/issues/551
image: quay.io/kiegroup/kogito-ci-build:19a0b303bc64f473a01f5fa5bacde822f10b4946 # last main-latest based on ubi
args: -v /var/run/docker.sock:/var/run/docker.sock --network host --group-add docker --group-add input --group-add render
image: quay.io/kiegroup/kogito-ci-build:main-latest
args: --privileged --group-add docker
default_tools:
jdk: jdk_11_latest
maven: maven_3.8.6
Expand Down
7 changes: 2 additions & 5 deletions dsl/scripts/pr_check.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ import org.kie.jenkins.MavenCommand
// TODO Docker image and args could be passed as env or anything ?
dockerGroups = [
'docker',
'input',
'render',
]
dockerArgs = [
'-v /var/run/docker.sock:/var/run/docker.sock',
'--network host',
'--privileged',
] + dockerGroups.collect { group -> "--group-add ${group}" }

void launch() {
String builderImage = 'quay.io/kiegroup/kogito-ci-build:19a0b303bc64f473a01f5fa5bacde822f10b4946' // last main-latest based on ubi
String builderImage = 'quay.io/kiegroup/kogito-ci-build:main-latest'
sh "docker rmi -f ${builderImage} || true" // Remove before launching

try {
Expand Down

0 comments on commit c0bd0f0

Please sign in to comment.