Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#710: configure dind image #1127

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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