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

Minor Docker enhancements #1660

Merged
merged 17 commits into from
Jan 16, 2024
Merged

Minor Docker enhancements #1660

merged 17 commits into from
Jan 16, 2024

Conversation

gpmayorga
Copy link
Contributor

Description

This PR:

  • Sets some additional RFC standard LABELS to our Docker container
  • Upload the container to both GitHub and DockerHub registries (PRs do not upload to DH)
  • Minor Dockerfile efficiencies.

It's a follow up from #1656

@gpmayorga gpmayorga requested a review from wischli as a code owner December 26, 2023 20:09
@gpmayorga gpmayorga changed the base branch from docker-readiness-fullnode to main December 26, 2023 20:10
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- run: echo "NOW=$(date -u +%y-%m-%d)" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated date according to standard RFC 3339 with full year instead of 2 digits

images: centrifugeio/centrifuge-chain
images: |
ghcr.io/centrifuge/centrifuge-chain
${{ github.event_name != 'pull_request' && 'centrifugeio/centrifuge-chain' || ''}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only push to DockerHub if it's not a PR


LABEL io.centrifuge.image.authors="[email protected]" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

LABELS are set using the GHA pipleline on the metadata step.
Ideally we don't publish images from our laptops and thus no need to have this here

@gpmayorga gpmayorga added D0-ready Pull request can be merged without special precaution and notification. Q0-trivial An issure which is similar to patching code. labels Dec 26, 2023
Copy link
Contributor

@lemunozm lemunozm left a comment

Choose a reason for hiding this comment

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

A couple of questions, but looks great! 🚀

.github/workflows/build-docker.yml Show resolved Hide resolved
.github/workflows/build-docker.yml Show resolved Hide resolved
.github/workflows/build-docker.yml Outdated Show resolved Hide resolved
.github/workflows/build-docker.yml Show resolved Hide resolved
@gpmayorga gpmayorga enabled auto-merge (squash) January 9, 2024 11:59
Copy link
Contributor

@wischli wischli left a comment

Choose a reason for hiding this comment

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

Thanks for continuously improving our docker images!

@gpmayorga gpmayorga merged commit ca18a90 into main Jan 16, 2024
11 checks passed
@gpmayorga gpmayorga deleted the docker-enhancements branch January 16, 2024 10:51
wischli pushed a commit that referenced this pull request Jan 29, 2024
* Add a readiness check to the Docker container

* missing path change for centrifuge binary

* push docker to GH registry on PRs to test image

* more standard paths for the binaries

* log into ghcr

* Add standardized OCI labels

* push to both registries

* fix registry permissions

* comply with RFC3339 standard date format

* Minor Docker enhancements

# Description

This PR:
- Sets some additional RFC standard LABELS to our Docker container
- Upload the container to both GitHub and DockerHub registries (PRs do not upload to DH)
- Minor Dockerfile efficiencies.

It's a follow up from #1656

* cleanup from old PR

* Update build-docker.yml with kf info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D0-ready Pull request can be merged without special precaution and notification. Q0-trivial An issure which is similar to patching code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants