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

Publish Docker images to GitHub Container Registry #440

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

bestbeforetoday
Copy link
Member

@bestbeforetoday bestbeforetoday commented Oct 13, 2024

In addition to Docker Hub, publish fabric-nodeenv Docker images to GitHub Container Registry to improve availability.

Also:

  • Remove redundant Azure Pipelines build definitions.
  • Update the Ubuntu image versions used for the build.

Contributes to hyperledger/fabric#4998
Closes #439

In addition to Docker Hub, publish fabric-nodeenv Docker images to
GitHub Container Registry to improve availability.

Also:

- Remove redundant Azure Pipelines build definitions.
- Update the Ubuntu image versions used for the build.

Signed-off-by: Mark S. Lewis <[email protected]>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review October 13, 2024 11:14
@bestbeforetoday bestbeforetoday requested a review from a team as a code owner October 13, 2024 11:14
@bestbeforetoday bestbeforetoday enabled auto-merge (squash) October 13, 2024 11:14
Copy link
Contributor

@denyeart denyeart left a comment

Choose a reason for hiding this comment

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

Looks good and I agree with the dual-approach from image repository.

Just one comment on the ubuntu version.

@@ -37,43 +34,45 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publishdocker:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

Why shift to ubuntu-24.04 for some and ubuntu-latest for others? Should probably keep it consistent.

Note that on fabric core we shifted everything to ubuntu-22.04 so that we'd have full control of the version and remain one level back to help with user compatibility (in case users can't yet support ubuntu-24.04 images, more important for things like fabric-ca which uses cgo in the binary build). I realize that these changes are just for the runners and not the final user image so I'm fine going to ubuntu-24.04 in this repository. Just wanted to provide you the thinking from core fabric in case you want to remain consistent with ubuntu-22.04.

Copy link
Member Author

Choose a reason for hiding this comment

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

24.04 is the current LTS so it seemed to make sense to shift to that instead of 22.04. I used an explicit Ubuntu release for tests and other things where it might be helpful to specify the Ubuntu version used for testing. For jobs where the version doesn't really matter, I figured ubuntu-latest meant they would stay current with minimal maintenance, and likely have access to the largest pool of hosted runners.

Copy link
Contributor

@denyeart denyeart left a comment

Choose a reason for hiding this comment

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

Makes sense.

@bestbeforetoday bestbeforetoday merged commit 7887093 into hyperledger:main Oct 14, 2024
7 checks passed
@bestbeforetoday bestbeforetoday deleted the ghcr branch October 14, 2024 16:29
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.

Publish Docker images to GitHub Container Registry
2 participants