Skip to content

fix: reintroduce gaia docker builds#3199

Merged
MSalopek merged 5 commits into
cosmos:mainfrom
hyphacoop:docker-build
Jul 12, 2024
Merged

fix: reintroduce gaia docker builds#3199
MSalopek merged 5 commits into
cosmos:mainfrom
hyphacoop:docker-build

Conversation

@fastfadingviolets

@fastfadingviolets fastfadingviolets commented Jul 10, 2024

Copy link
Copy Markdown
Collaborator

Description

Closes: #3124

Brings back the docker-push workflow to build a docker image for gaia. Gets rid of the Dockerfile, and uses only the e2e.Dockerfile. Also changes the UID/GUID of the user in the docker image to be 1025, which makes it compatible with interchaintest


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Added ! to the type prefix if API, client, or state breaking change (i.e., requires minor or major version bump)
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Followed the guidelines for building SDK modules
  • Included the necessary unit and integration tests
  • Added a changelog entry in .changelog (for details, see contributing guidelines)
  • Included comments for documenting Go code
  • Updated the relevant documentation or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

@fastfadingviolets fastfadingviolets changed the title Docker build fix: reintroduce gaia builds Jul 10, 2024
This is for compatibility with interchaintest, since it will chown files
to that UID/GUID
They execute on the main branch, releases, and on workflow dispatch.
Also get rid of the Dockerfile and use just the e2e one
@fastfadingviolets

Copy link
Copy Markdown
Collaborator Author

On the hyphacoop fork, the image builds but doesn't push over permissions issues; I don't think this'd be a problem if this were merged.

@fastfadingviolets fastfadingviolets changed the title fix: reintroduce gaia builds fix: reintroduce gaia docker builds Jul 10, 2024
@fastfadingviolets fastfadingviolets marked this pull request as ready for review July 10, 2024 14:57
@fastfadingviolets fastfadingviolets requested a review from a team July 10, 2024 14:57

@MSalopek MSalopek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for your contribution!

I think we can merge this, I would like us to switch to using a file named Dockerfile and changing the docker-push workflow fto a nightly build - main is quite noisy and gets multiple pushes a day which are not all required to produce working binaries at all times.

Something like this, maybe? We can have a separate workflow for nightly and release builds, it does not make much of a difference.

EDIT:
Suggestions are nice to haves, they are not merge blocking.

Comment thread .github/workflows/docker-push.yml Outdated
Comment thread .github/workflows/docker-push.yml Outdated
@fastfadingviolets

Copy link
Copy Markdown
Collaborator Author

Thanks for your comments! I addressed them, plus added a short DOCKER_README explaining how to use the image, and how tagging works for it

@MSalopek

Copy link
Copy Markdown
Contributor

Thanks for your comments! I addressed them, plus added a short DOCKER_README explaining how to use the image, and how tagging works for it

Awesome! Thank you very much for this!

@MSalopek MSalopek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Thanks for the changes!

@MSalopek MSalopek merged commit 74fc7c6 into cosmos:main Jul 12, 2024
@fastfadingviolets fastfadingviolets deleted the docker-build branch July 12, 2024 13:57
fastfadingviolets added a commit to fastfadingviolets/gaia that referenced this pull request Jul 16, 2024
* Set UID and GUID to 1025 in Dockerfile

This is for compatibility with interchaintest, since it will chown files
to that UID/GUID

* Reenable docker builds.

They execute on the main branch, releases, and on workflow dispatch.
Also get rid of the Dockerfile and use just the e2e one

* add changelog entry

* Only run docker build on GIT_DIFF

* Nightly docker builds, plus add a DOCKER_README
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.

[feature request]: gaia container image is outdated since 2 years

3 participants