-
Notifications
You must be signed in to change notification settings - Fork 33
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
WIP: Improve search method #99
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Source image | ||
source_image="localhost:5000/hello-world-v1:latest" | ||
|
||
# Registry URL | ||
registry_url="localhost:5000" | ||
|
||
# Iterating from 2 to 101 | ||
for counter in {2..101} | ||
do | ||
# Destination image name | ||
dest_image="$registry_url/hello-world-v$counter:latest" | ||
|
||
# Skopeo copy command | ||
skopeo copy --dest-tls-verify=false "docker-daemon:$source_image" "docker://$dest_image" | ||
|
||
# Optional: Echo to track progress | ||
echo "Copied to $dest_image" | ||
done | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ def self.connect(uri = 'https://registry.hub.docker.com', opts = {}) | |
@reg = DockerRegistry2::Registry.new(uri, opts) | ||
end | ||
|
||
def self.search(query = '') | ||
@reg.search(query) | ||
def self.search(query = '', records = 100) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it a bit strange that here the params are There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, i will align them 👍 .. any preferences? |
||
@reg.search(query, records) | ||
end | ||
|
||
def self.tags(repository) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
This is a nice utility, but I don't think it belongs in the root, does it?
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.
true, i will move it to a better place