{"id":22615638,"url":"https://github.com/marcellodesales/gitreceive-docker","last_synced_at":"2025-09-04T10:36:34.696Z","repository":{"id":142072592,"uuid":"124797908","full_name":"marcellodesales/gitreceive-docker","owner":"marcellodesales","description":"Git Receiver for Handling operations against files in a repo, Just like Heroku","archived":false,"fork":false,"pushed_at":"2018-03-12T04:09:48.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:42:40.267Z","etag":null,"topics":["docker","dockerfile","gitreceive","paas","ssh","ssh-server"],"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/marcellodesales.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":"2018-03-11T20:46:30.000Z","updated_at":"2018-03-11T20:55:23.000Z","dependencies_parsed_at":"2023-07-09T05:31:14.727Z","dependency_job_id":null,"html_url":"https://github.com/marcellodesales/gitreceive-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcellodesales/gitreceive-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fgitreceive-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fgitreceive-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fgitreceive-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fgitreceive-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcellodesales","download_url":"https://codeload.github.com/marcellodesales/gitreceive-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fgitreceive-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272468507,"owners_count":24939741,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"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","dockerfile","gitreceive","paas","ssh","ssh-server"],"created_at":"2024-12-08T19:08:42.031Z","updated_at":"2025-08-28T08:18:11.774Z","avatar_url":"https://github.com/marcellodesales.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker - Gitreceive\n\nGitreceive https://github.com/progrium/gitreceive\n\n# Running\n\n```\ndocker run --name gitreceive -d -p 22:22 marcellodesales/gitreceive\n```\n\n* The container will expose port 22 (default ssh port) and have a docker volume mounted at /home/git.\n\n\u003e Making port binding to other ports makes it harder to connect to the container.\n\n* Make sure the receiver is correctly setup in your host.\n\n```\ndocker exec -ti gitreceiver cat /home/git/receiver\n```\n\n# Add Keys\n\nTo allow someone push to gitreceive, you need to add their public key.\n\n\u003e Make sure to review details at https://github.com/progrium/gitreceive\n\n```\ncat ~/.ssh/id_rsa.pub | ssh -i sshkey root@localhost \"gitreceive upload-key mdesales\"\n```\n\n* The ssh keys are provided for convenience. You must create your own in any serious use.*\n\n# Receiving Git changes\n\n* Simply add the server as an origin of a directory with a github repo.\n\n```\n$ git remote add paas git@localhost:myapp\n\n$ git remote show paas\n* remote paas\n  Fetch URL: git@localhost:myapp\n  Push  URL: git@localhost:myapp\n  HEAD branch: master\n  Remote branch:\n    master tracked\n  Local ref configured for 'git push':\n    master pushes to master (up to date)\n```\n\n* You can now push to the receiver... It will execute the receive script...\n\n```\n$ git push paas master\nCounting objects: 5, done.\nDelta compression using up to 8 threads.\nCompressing objects: 100% (5/5), done.\nWriting objects: 100% (5/5), 1.21 KiB | 1.21 MiB/s, done.\nTotal 5 (delta 2), reused 0 (delta 0)\n\n\n######## Git Receiver - by marcello.desales@gmail.com ##########\n\n==\u003e repository: myapp\n==\u003e label: branch 'master'\n==\u003e revision: b61ad7b28d0beeee43297278acbede4f01745987\n==\u003e username: mdesales\n==\u003e fingerprint: 7d:5f:8a:b0:f8:43:9f:a1:b3:91:7f:48:62:27:17:ec\n\n==\u003e Unpacking repo...\n-\u003e sshkey\n-\u003e gitreceive\n-\u003e receiver\n-\u003e Dockerfile\n-\u003e sshkey.pub\n-\u003e README.md\n\nReceiving done...\n\nTo localhost:myapp\n * [new branch]      master -\u003e master\n```\n\n* I have patched this to allow any branches to be pushed...\n\n```\n$ git push paas develop\nCounting objects: 20, done.\nDelta compression using up to 8 threads.\nCompressing objects: 100% (20/20), done.\nWriting objects: 100% (20/20), 7.81 KiB | 7.81 MiB/s, done.\nTotal 20 (delta 7), reused 4 (delta 0)\n\n\n######## Git Receiver - by marcello.desales@gmail.com ##########\n\n==\u003e repository: myapp\n==\u003e label: branch 'develop'\n==\u003e revision: 9906a93e67f29316727e071f3b9b602c014ef2fc\n==\u003e username: mdesales\n==\u003e fingerprint: 7d:5f:8a:b0:f8:43:9f:a1:b3:91:7f:48:62:27:17:ec\n\n==\u003e Unpacking repo...\n-\u003e sshkey\n-\u003e gitreceive\n-\u003e receiver\n-\u003e Dockerfile\n-\u003e sshkey.pub\n-\u003e README.md\n\nReceiving done...\n\nTo localhost:myapp\n * [new branch]      develop -\u003e develop\n```\n\n* You can see the receiver executing the following:\n\n```\n$ docker exec -ti gitreceiver cat /home/git/receiver\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fgitreceive-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcellodesales%2Fgitreceive-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fgitreceive-docker/lists"}