-
Notifications
You must be signed in to change notification settings - Fork 373
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
Switch to using CLI for everything except running the container #1421
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ac0def4
Use CLI to push docker image
yuvipanda 268e187
Properly set DOCKER_CONFIG to be a dir, not a file
yuvipanda 3bdc004
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 364a189
Add a local registry in github actions for us to test with
yuvipanda 82e049f
Add a docker registry integration test with real registry
yuvipanda 8444a28
Explicitly pull registry image before trying to run
yuvipanda 69e67a2
Don't need -it for docker run here
yuvipanda a8369be
Use custom dind for talking to insecure registry
yuvipanda 9f6fbf7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 576b896
Stop using docker-py for anything
yuvipanda 48da2c1
Re-add dockerpy for using exclude patterns
yuvipanda a0f02ce
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2d9a350
Inspect returns a list of dicts
yuvipanda af1050f
Re-add docker import for container running
yuvipanda 5aaf26a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9753570
Pass cert_dir removal some of the time
yuvipanda c04652e
Replace mocked find_image tests with real ones
yuvipanda c9b78be
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0bc550a
Add a .gitignore for any generated tmp certs
yuvipanda b854c6c
Document why we put certs in current dir
yuvipanda 3e458e3
Remove a couple more tests
yuvipanda 1bd3d27
Restore env vars after test
yuvipanda c294236
Remove some more tests
yuvipanda aa948e0
Test login to registry as well
yuvipanda ad29ffd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2fece29
Add validation for registry_credentials
yuvipanda 0f68056
Intentionally set auth when checking if image exists in registry
yuvipanda e066ca0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 07e97ee
Turn push and load into params for the build arg
yuvipanda 2bd8478
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 081c3c4
Make build and push into explicit only args
yuvipanda 56cf063
Don't pass --no-run to find tests
yuvipanda ce35f47
Actually remove push method
yuvipanda d3facba
Fix documentation for `--push`
yuvipanda 342eea9
Move login command inside try so we clear env correctly
yuvipanda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be easier to manipulate the
config.json
file directly:It's also what we do to create the BinderHub secret:
https://github.com/jupyterhub/binderhub/blob/579dd78430422bae896c90d69ffad637d9fcfc26/helm-chart/binderhub/templates/_helpers.tpl#L40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manics I did consider that, but then we'll have to merge the existing ~/.docker/config file with the new setup carefully. I would rather just outsource it to
docker login
like this instead.