{"id":23223813,"url":"https://github.com/h2cone/pubimg","last_synced_at":"2025-08-19T12:31:14.376Z","repository":{"id":244549003,"uuid":"718887032","full_name":"h2cone/pubimg","owner":"h2cone","description":"Publish image from source registry to target registries.","archived":false,"fork":false,"pushed_at":"2024-09-12T06:05:33.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-12T15:30:52.326Z","etag":null,"topics":["command-line","docker-image","graalvm","harbor-registry"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h2cone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-15T01:47:32.000Z","updated_at":"2024-09-12T06:05:36.000Z","dependencies_parsed_at":"2024-06-15T15:23:17.972Z","dependency_job_id":"3c33ec0a-7be9-45fe-af18-556252d17832","html_url":"https://github.com/h2cone/pubimg","commit_stats":null,"previous_names":["h2cone/pubimg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2cone%2Fpubimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2cone%2Fpubimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2cone%2Fpubimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2cone%2Fpubimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h2cone","download_url":"https://codeload.github.com/h2cone/pubimg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230351383,"owners_count":18212867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","docker-image","graalvm","harbor-registry"],"created_at":"2024-12-18T23:19:28.299Z","updated_at":"2024-12-18T23:19:28.716Z","avatar_url":"https://github.com/h2cone.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# publib\n\nPublish image from source registry to target registry.\n\n## Usage\n\n```shell\nUsage: pubimg [-hV] -n=\u003cname\u003e -ns=\u003cnamespace\u003e [-prd=\u003cdelay\u003e] [-rp=\u003cregConf\u003e]\n              -s=\u003csource\u003e \u003ctarget\u003e\nPublish image from source registry to target registry\n      \u003ctarget\u003e          Target registry aliase\n  -h, --help            Show this help message and exit.\n  -n=\u003cname\u003e             Source name\n      -ns=\u003cnamespace\u003e   Target namespace\n      -prd=\u003cdelay\u003e      Progress refresh delay in seconds\n      -rp=\u003cregConf\u003e     Path to registry.properties\n  -s=\u003csource\u003e           Source registry alias\n  -V, --version         Print version information and exit.\n```\n\n## Example\n\n1. Create a file named `registry.properties` with the following content:\n\n```properties\nfoo.host=harbor.foo.com\nfoo.username=foo\nfoo.password=foo\n\nbar.host=harbor.bar.com\nbar.username=bar\nbar.password=bar\n```\n\nThe file contains credentials for the source and target registries, with `foo` and `bar` as their aliases.\n\n2. Publish image `dev/qux:latest` from `harbor.foo.com` to `harbor.bar.com`:\n\n```shell\npubimg -rp='./registry.properties' -n='dev/qux:latest' -s=foo -ns=test bar\n```\n\nAfter all tasks are completed, you can find the image in `harbor.bar.com/test/qux:latest`.\n\n## How to build native executable\n\n### Prerequisites\n\n* [GraalVM](https://www.graalvm.org/)\n* [Apache Maven](https://maven.apache.org/)\n\n### Building\n\n```shell\nmvn -Pnative native:compile\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2cone%2Fpubimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh2cone%2Fpubimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2cone%2Fpubimg/lists"}