{"id":18573751,"url":"https://github.com/lowzj/gitlab-mirror-webhook","last_synced_at":"2025-05-15T23:34:06.789Z","repository":{"id":149703594,"uuid":"74667110","full_name":"lowzj/gitlab-mirror-webhook","owner":"lowzj","description":"gitlab-ce, gitlab-mirrors and a simple github webhook web server","archived":false,"fork":false,"pushed_at":"2017-03-01T11:24:48.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T14:48:08.413Z","etag":null,"topics":["github-mirror","github-webhooks","gitlab-ce","gitlab-mirror","gitlab-mirror-webhook"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lowzj.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":"2016-11-24T11:30:08.000Z","updated_at":"2021-02-03T09:22:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf19a4a7-3ccf-4a8a-8193-68e420897a57","html_url":"https://github.com/lowzj/gitlab-mirror-webhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowzj%2Fgitlab-mirror-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowzj%2Fgitlab-mirror-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowzj%2Fgitlab-mirror-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowzj%2Fgitlab-mirror-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowzj","download_url":"https://codeload.github.com/lowzj/gitlab-mirror-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442313,"owners_count":22071863,"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":["github-mirror","github-webhooks","gitlab-ce","gitlab-mirror","gitlab-mirror-webhook"],"created_at":"2024-11-06T23:12:15.074Z","updated_at":"2025-05-15T23:34:06.727Z","avatar_url":"https://github.com/lowzj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlab-mirror-webhook\nA docker image contains gitlab-ce, gitlab-mirrors and a simple github webhook web server\n\n#### run docker image gitlab-ce\n\n```sh\nsh start-gitlab.sh\n```\n\n#### Clone the gitlab-mirrors repository and set values in config.sh.\n\n```sh\nsh build-mirror.sh\n```\n\n#### Modify gitlab-mirror's config.sh\n\nModify the values in `config.sh` for your setup.\nWrite the private token of the gitmirror GitLab user into `~/private_token` of\nyour `gitmirror` system user.\n\n```ini\nsystem_user=\"${your_system_user}\"\nrepo_dir=\"${user_home}/apps/var/gitlab-mirror/repositories\"\n#This is the Gitlab group where all project mirrors will be grouped.\ngitlab_namespace=\"${your_project_group}\"\n#This is the base web url of your Gitlab server.\ngitlab_url=\"http://${your_gitlab_url}\"\n#Special user you created in Gitlab whose only purpose is to update mirror sites and admin the $gitlab_namespace group.\ngitlab_user=\"root\"\n#Generate a token for your $gitlab_user and set it here.\ngitlab_user_token_secret=\"$(head -n1 \"${user_home}/apps/opt/gitlab-mirror/private_token\" 2\u003e /dev/null || echo \"\")\"\n```\n\n#### Add github repo\n\n```sh\ncd gitlab-mirrors \u0026\u0026 ./add_mirror.sh --git --project-name YOUR_GITLAB_PROJECT_NAME --mirror YOUR_GITHUB_REPO_URL\n```\n\n#### Set webhook env\n\n```sh\nexport GITLAB_MIRROR_WEBHOOK_SECRET=xxxx\nexport GITLAB_MIRROR_WORK_DIR=yyyy\n```\n\n#### Start webhook.py\n\n```sh\nsh start-webhook.py\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowzj%2Fgitlab-mirror-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowzj%2Fgitlab-mirror-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowzj%2Fgitlab-mirror-webhook/lists"}