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

fix: check that docker is installed #3889

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

kuisathaverat
Copy link
Contributor

What does this PR do?

It checks that Docker is installed before run it.

Why is it important?

Some worker types do not have Docker installed this breaks the packer build.

@codecov-commenter
Copy link

Codecov Report

Merging #3889 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3889      +/-   ##
==========================================
- Coverage   79.80%   79.72%   -0.09%     
==========================================
  Files         135      135              
  Lines        6194     6194              
==========================================
- Hits         4943     4938       -5     
- Misses       1251     1256       +5     
Impacted Files Coverage Δ
kibana/connecting_client.go 64.51% <0.00%> (-8.07%) ⬇️

do
(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue"
done
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if docker is not installed? Will the CI just finish and pass?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for those packer images that do not have Docker installed packer will skip the docker pull, doing that, the build success. This does not affect to the APM server build, we do not use those images for builds, they are used for testing OS.

@apmmachine
Copy link
Contributor

apmmachine commented Jun 16, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-06-17T11:49:41.033+0000

  • Duration: 46 min 23 sec

Test stats 🧪

Test Results
Failed 0
Passed 3216
Skipped 146
Total 3362

Steps errors

Expand to view the steps failures

  • Name: Compress

    • Description: tar --exclude=coverage-files.tgz -czf coverage-files.tgz coverage

    • Duration: 0 min 0 sec

    • Start Time: 2020-06-17T12:04:20.867+0000

    • log

  • Name: Compress

    • Description: tar --exclude=system-tests-linux-files.tgz -czf system-tests-linux-files.tgz system-tests

    • Duration: 0 min 0 sec

    • Start Time: 2020-06-17T12:15:58.977+0000

    • log

  • Name: Test Sync

    • Description: ./script/jenkins/sync.sh

    • Duration: 3 min 40 sec

    • Start Time: 2020-06-17T11:59:21.234+0000

    • log

@kuisathaverat kuisathaverat merged commit a6eb0a8 into elastic:master Jun 17, 2020
simitt pushed a commit to simitt/apm-server that referenced this pull request Dec 15, 2020
simitt added a commit that referenced this pull request Dec 16, 2020
* chore(ci): move CI scripts to the .ci directory (#4452)

* chore(ci): movee windows scripts to the CI location

* chore(ci): move more scripts

* chore(ci): move check-changelogs to CI folder

* chore(ci): move intake script to CI dir

* chore(ci): move bench script

* chore(ci): move sync script

* chore(ci): move package to CI dir

* chore(ci): move test-install to CI dir

* chore(ci): remove unused windows script

* ci: remove cron trigger from the check changelog job (#3957)

* fix: ci build and test of the golang-mage docker image (#3563)

* [CI][docker] prepare required context (#4136)

* packer: cache docker images (#3620)

* fix: check that docker is installed (#3889)

* Update Jenkinsfile

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
Co-authored-by: Ivan Fernandez Calvo <kuisathaverat@users.noreply.github.com>
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants