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

Use docker push to push image #85

Merged
merged 2 commits into from
Mar 15, 2022
Merged

Conversation

yuvipanda
Copy link
Collaborator

@yuvipanda yuvipanda commented Mar 11, 2022

docker push has a couple of advantages over --push in
repo2docker:

  • If we use --push, we can not actually run the docker image-tests/
    before pushing! So if an image-test/ fails, the docker image is still
    pushed! This is very confusing behavior.
  • It times out sometimes, causing issues where the image just
    fails to push after building. docker push doesn't have this
    issue - see r2d-action broken? 2i2c-org/utoronto-image#20,
    where we had to manually run a docker push.
  • docker push provides more useful output than --push

This commit also removes some code duplication - we now build
the image regardless, and use the flag just to differentiate pushing.
An unused bash function was also deleted.

docker push has a couple of advantages over --push in
repo2docker:

- It times out sometimes, causing issues where the image just
  fails to push after building. docker push doesn't have this
  issue - see 2i2c-org/utoronto-image#20,
  where we had to manually run a docker push.
- docker push provides more useful output than --push

This commit also removes some code duplication - we now build
the image regardless, and use the flag just to differentiate pushing.
An unused bash function was also deleted.
yuvipanda added a commit to 2i2c-org/utoronto-image that referenced this pull request Mar 11, 2022
Brings in jupyterhub/repo2docker-action#85,
which just uses docker push in upstream r2d-action to fix
the timeout issues.
@yuvipanda
Copy link
Collaborator Author

Tested to work with 2i2c-org/utoronto-image#24

Copy link
Member

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Giving this PR a review is outside of my skillset from a technical perspective, but the rationale seems like a reasonable approach to me, and if @hamelsmu is +1 then so am I :-)

@yuvipanda
Copy link
Collaborator Author

How do you feel about hitting the merge button, @hamelsmu? :)

@hamelsmu hamelsmu merged commit e19285d into jupyterhub:master Mar 15, 2022
@yuvipanda
Copy link
Collaborator Author

Thanks a lot, @hamelsmu!

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.

3 participants