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#747: tweak CI image docker startup #1140

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

jstastny-cz
Copy link
Contributor

Fixes

  • Wait for docker start when using kogito-ci-build container incubator-kie-issues#747

  • Adding an extra script to kogito-ci-build image to allow waiting for dockerd to be started.
    Reason is that Jenkins does not wait for entrypoint.sh to finish before it starts executing steps towards it. Thus sometimes the docker is not yet started and docker socket available.

  • Adding also pipeline util method util.waitForDocker() which first sleeps for short period of time before invoking the wait script against the container - in some cases the waiting script's invocation seemed to be too early to be successful - jenkins would just hang.
    Thanks to library definition changes in the Jenkinsfile.build-kogito-ci-image the jenkins library change was properly tested.

  • Also included change to change default shell to bash, instead of dash.

@jstastny-cz
Copy link
Contributor Author

Disregard the jenkins build, it's mistakenly triggered from a testing location.

@jstastny-cz jstastny-cz merged commit c17c50e into main Dec 8, 2023
1 of 2 checks passed
@jstastny-cz jstastny-cz deleted the kie-issues_747 branch December 8, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant