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

For localdb e2e tests use ping from busybox #3200

Merged
merged 1 commit into from May 6, 2020

Conversation

inodb
Copy link
Member

@inodb inodb commented May 6, 2020

The code was using ping from the backend container to check whether the
container is alive. The java 11 slim image does not have ping. Busybox is a
very small image that has tons of common unix utilities, so maybe a
decent choice of image to check for liveness. That said I'm not sure if
there is a more common approach in e.g. docker itself to check for
liveness of a container in a network.

See backend PR that introduces java 11: cBioPortal/cbioportal#7464

The code was using ping from the backend container to check whether the
container is alive. The java 11 image does not have ping. Busybox is a
very small image that has tons of common unix utilities, so maybe a
decent choice of image to check for liveness. That said I'm not sure if
there is a more common approach in e.g. docker itself to check for
liveness of a container in a network.
@inodb inodb requested a review from pvannierop May 6, 2020 16:24
Copy link
Contributor

@nr23730 nr23730 left a comment

Choose a reason for hiding this comment

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

Very good that you figured it out!
Didn't think of that. If I hadn't chosen the -slim version of jre this probably wouldn't be an issue...

Makes the e2e pass CI, see: https://app.circleci.com/pipelines/github/cBioPortal/cbioportal/979/workflows/dc9aa3d7-16ad-49cb-9379-c00262e35d1f/jobs/2667/steps

@inodb
Copy link
Member Author

inodb commented May 6, 2020

@nr23730 good point that it is probably related to slim image 👍. Seems like a good idea regardless to use the slim image

I looked at the e2e test failures here but they are not related to this PR so gonna merge this

@inodb inodb merged commit fb7029b into cBioPortal:master May 6, 2020
nr23730 added a commit to nr23730/cbioportal that referenced this pull request May 6, 2020
@inodb inodb added the test label May 6, 2020
@inodb inodb deleted the fix-java-11-e2e-localdb-test branch January 11, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants