-
-
Notifications
You must be signed in to change notification settings - Fork 27
Support accessing remote registries via ssh #589
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
Merged
vsoch
merged 72 commits into
singularityhub:add/private-remotes
from
muffato:add/private-remotes/sshh
Nov 8, 2022
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
636ddb9
Support accessing remote registries via ssh
muffato 5ca9a19
Factored out a function that tells whether a registry path is local
muffato 4cdc206
Make sure the URL is used, not self.source which could be a local path
muffato d5569d5
Make sure the URL is used, not self.source which could be a local path
muffato 1e755a3
Make self.source include the subdir from the start. Allows implementi…
muffato 724eee8
bugfix: this should be the local registry
muffato bef33d6
Made VersionControl generic enough to deal by itself with GitHub and …
muffato ede973f
Not needed ?
muffato 5d7087f
Factored out and parametrised the code that builds the URL of the con…
muffato 1cadf59
The check already happens in _update_cache()
muffato db2a14f
Moved is_path_local to shpc.utils
muffato 8c1ad75
Added a safeguard to prevent cloning multiple times
muffato 06fd1a6
clone() is actually only supported by VersionControl
muffato 5d290f7
No need to yield self.source in iter_modules since it's constant and …
muffato 3d3e6b9
syntactic sugar
muffato 289000a
It's more practical to yield the the registry object (provider) rathe…
muffato d356ab1
Optimised the "update all" mode by directly using Result objects from…
muffato 3666a97
Clones only ever exist within a function
muffato 0e34cc3
Optimised iter_modules method for remote registries (using the cache)
muffato 700b9e3
Moved back iter_modules to Filesystem since VersionControl has its ow…
muffato 58b6af9
Stopped using self.source in VersionControl, to avoid confusion with …
muffato 8190884
url, not source, is to be used for remote registries
muffato 98259c1
Cannot do these heuristics as we need to report unexisting local paths
muffato 4797224
str.split can limit the number of splits
muffato 3d9cae2
The main Registry object, not the settings, should decide whether the…
muffato 54d45ad
To avoid duplicating the code that assesses whether a path or local o…
muffato 59c01cc
The parent class shouldn't know that much about the subclasses
muffato db48626
Restored back the automatic addition of https://
muffato 583e7d4
Restructured to avoid an unnecessary else
muffato bd67e13
shpc convention: no else when the then ends with a return
muffato fb2ed7c
Unnecessary due to operator precedence rule
muffato b54bbfe
Added a cache in `library_url`
muffato 5c912a6
Fixed the implementation of the cache in VersionControl.exists
muffato 99a2d57
exists has its own implementation in VersionControl, so this implemen…
muffato 486f12b
iter_registry is basically iter_modules with an extra filter
muffato 0b65fa6
Yield relative paths rather than full paths since *all* consumers nee…
muffato b064026
Proper method to cleanup a clone
muffato bc24016
Increased the symmetry to simplify the maintainability
muffato 8768237
NotImplementedError is more useful than pass
muffato 4170484
The tuplized version is not the preference here
muffato be3793f
Easier to understand
muffato 468afdf
Made the clone return a Filesystem object independent from VersionCon…
muffato bc2fe99
Extra comment
muffato b836cd8
Back to a subclass of VersionControl for each forge
muffato e506ee3
Pre-parse the URL
muffato b263272
VersionControl should not be directly used
muffato 9c03796
bugfix
muffato b1a2ea8
Forgot to build the registry object
muffato 492bcb3
typo
muffato b6fbd50
Maybe this one will work ?
muffato 8ff0c77
Forgot to change this signature
muffato 153bd39
Renamed the variable for clarity
vsoch da752f3
typo
muffato 653d467
Removing yaml because it's the only file we have for a container
muffato b71fb93
Defensive programming: local could still be None
muffato f069f48
bugfix: iter_modules needs to yield paths to container.yaml
muffato ccdab16
Moved the cleanup call up to _sync()
muffato c5b4cb9
bugfix: iter_modules now returns path to the container.yaml
muffato 9402e11
Revert "bugfix: iter_modules needs to yield paths to container.yaml"
muffato 687c076
Revert "bugfix: iter_modules now returns path to the container.yaml"
muffato e744af2
The temp directory may have been deleted in the meantime
muffato e37a252
Need to check here too that the clone still exists
muffato ca5b632
Also need to reset self._clone if the directory is gone
muffato f1c5445
More checks on local and remote
muffato 7bb857b
It makes more sense to cleanup tmplocal than self, and it works becau…
muffato 043532b
Moved this to the parent class
muffato 1334b64
Another implementation that doesn't make it too obvious the base-clas…
muffato e925aa1
Silly typo: self._clone is a Filesystem object, not a string
muffato 7ad7729
No colon
muffato 455f10d
You shall use American spelling
muffato 89975c1
Added a test to showcase ssh
muffato 6eaadfb
black
muffato 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.