Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add Curl to Docker image #11687

Merged
merged 2 commits into from
May 11, 2020
Merged

Add Curl to Docker image #11687

merged 2 commits into from
May 11, 2020

Conversation

denisgranha
Copy link

I realised that with the current docker image, it's not possible to add binaries afterwards due to the permissions of the image, that's good but it complicates monitoring.

In kubernetes you can create healthy and readiness checks for containers by doing HTTP requests or checking some command executions, in the case of ethereum nodes, sometimes is a bit complex because: What's a healthy node?

We handle that in Gnosis by comparing nodes to another nodes and checking synching/peer/block statuses, for that end curl is a handy library.

I tried to make a workaround to not include curl in the image, but it doesn't work 100%, it makes the job for readiness checks, but not for health checks (those have to be at the same container level).

I'm adding a new version number so we keep the history properly in the tags and docker releases at https://hub.docker.com/u/openethereum

… the alpine docker image. This is needed for creating proper healthy and readiness checks in environments like Kubernetes clusters.
Copy link
Collaborator

@eduadiez eduadiez left a comment

Choose a reason for hiding this comment

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

This just change the image size a bit, so I see no problem

Cargo.toml Outdated Show resolved Hide resolved
Copy link

@vorot93 vorot93 left a comment

Choose a reason for hiding this comment

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

See comment.

Cargo.toml Outdated Show resolved Hide resolved
@denisgranha denisgranha requested a review from vorot93 May 11, 2020 08:26
@vorot93 vorot93 merged commit fdf5f67 into master May 11, 2020
@vorot93 vorot93 deleted the denisgranha/docker-add-curl branch May 11, 2020 09:55
dvdplm added a commit that referenced this pull request May 13, 2020
* master:
  Add 3.0.0 changelog (#11690)
  Fix typo (#11698)
  Add deprecation warnings (#11682)
  Add Curl to Docker image (#11687)
  v3 release version strings and track stable (#11680)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants