{"id":18609944,"url":"https://github.com/mcrmonkey/git-magicmirror","last_synced_at":"2026-04-19T04:34:29.722Z","repository":{"id":146090060,"uuid":"236242959","full_name":"mcrmonkey/git-magicmirror","owner":"mcrmonkey","description":"POC for maintaining a repo mirror","archived":false,"fork":false,"pushed_at":"2020-01-25T23:20:49.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T22:37:21.934Z","etag":null,"topics":["docker-image","git","mirror","poc"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcrmonkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-01-25T23:15:59.000Z","updated_at":"2020-02-02T18:01:26.000Z","dependencies_parsed_at":"2023-04-21T08:02:16.931Z","dependency_job_id":null,"html_url":"https://github.com/mcrmonkey/git-magicmirror","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcrmonkey/git-magicmirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcrmonkey%2Fgit-magicmirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcrmonkey%2Fgit-magicmirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcrmonkey%2Fgit-magicmirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcrmonkey%2Fgit-magicmirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcrmonkey","download_url":"https://codeload.github.com/mcrmonkey/git-magicmirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcrmonkey%2Fgit-magicmirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31995126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker-image","git","mirror","poc"],"created_at":"2024-11-07T03:07:51.259Z","updated_at":"2026-04-19T04:34:29.702Z","avatar_url":"https://github.com/mcrmonkey.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git MagicMirror\n\nPOC for maintaining a repository mirror.\n\nCurrently defaults to handling the master branch but others can be added if needed.\n\n**Use at your own risk**: This is a proof of concept and may break something\n\nCan be run via the docker image or the script run directly on your host system\n( Working directory defaults to /workspace )\n\n*Note*: For ease some host keys have been included for github, gitlab and\nbitbucket. You may have to accept some host keys during the clone process.\n\n## Building the container\n\nStandard build process for a container:\n\n```bash\ndocker build -t git-magicmirror .\n\n```\n\n## Running in the container\n\n\n### Required Variables\n\nThe following environment variables are required to run:\n\n`SOURCE_GIT` - is the clone URL for the repo you wish to mirror\n\n`MIRROR_GIT` - is the clone URL for the mirror repository\n\nAn example clone URL may look like this for SSH: `git@github.com:mcrmonkey/.files.git`\n\nor this for HTTPS: `https://github.com/mcrmonkey/.files.git`\n\nObviously you'll need to be able to push mirror repo to update it.\n\n### Optional variables\n\nSetting the environment variable `AUTO_PUSH` to any value will trigger an\nattempt to push the changes back to the mirror repo.\n\n### SSH authentication\n\nYou can pass in ssh keys with a docker volume option:\n\n`-v /path/to/key:/root/.ssh/id_rsa:ro`\n\nor you can pass your current SSH agent through:\n\n`-v ${SSH_AUTH_SOCK}:/sshsock:ro -e SSH_AUTH_SOCK=\"/sshsock\"`\n\n\nExample Docker command:\n\n```bash\n\ndocker run -it --rm --name git-magicmirror -e SOURCE_GIT=\"\u003csource-repo\u003e\" -e\nMIRROR_GIT=\"\u003cmirror-repo\u003e\"\n\n```\n\nYou can add `/go.sh` to the end of the docker run command to trigger the\nprocess as soon as the container starts.\n\n## Other options \n\nthe `/workspace` directory can be moved to a volume if you wish to keep the\nrepository data you're working on\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcrmonkey%2Fgit-magicmirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcrmonkey%2Fgit-magicmirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcrmonkey%2Fgit-magicmirror/lists"}