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

Add tini to graphql and apollo containers #191

Merged
merged 6 commits into from
Feb 22, 2021
Merged

Add tini to graphql and apollo containers #191

merged 6 commits into from
Feb 22, 2021

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Feb 19, 2021

Finishes #190.


Summary

Installs tini and uses as an entrypoint to graphql/apollo containers to reap zombie processes.

Notes for review

  • Uses sha256 instead of gpg for checksum verification (both are recommended checks but sha256 is significantly lighter with a 2x faster image build time)

  • Fails to run when build on an M1 machine with

❯ docker run -it 932c6511928bbb40c364b9a414333e802c9fe8a9edd76dfb7d58cbf59df2c613
/lib64/ld-linux-x86-64.so.2: No such file or directory

I've added an ARCH flag so you can docker build . --build-arg ARCH=arm64 for development builds. I presume that once we use apt it'll just grab the correct binary automatically.

Importance

Fixes PrefectHQ/prefect#4114

Checklist

This PR:

  • [ ] adds new tests (if appropriate)
  • adds a change file in the changes/ directory (if appropriate)

jcrist and others added 2 commits February 18, 2021 18:07
The healthchecks in these containers were leading to zombie processes,
since there was no init process around to reap them. For some reason the
other containers don't have this problem (something else must be reaping
the health check processes).

This PR is only half done, still needs to be added to apollo. My
internet/electricity is not consistent enough right now to finish this
up, would be good if someone else could.
@zanieb zanieb requested review from cicdw and jlowin as code owners February 19, 2021 00:40
@codecov-io
Copy link

Codecov Report

Merging #191 (1f47c00) into master (7271c9c) will increase coverage by 0.10%.
The diff coverage is n/a.

@TylerWanner
Copy link
Contributor

this is a fine solution for me

@zanieb zanieb merged commit 34ea842 into master Feb 22, 2021
@zanieb zanieb deleted the add-tini branch February 22, 2021 17:23
@zanieb zanieb mentioned this pull request Feb 22, 2021
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.

Server healthchecks create curl zombies
5 participants