{"id":19288192,"url":"https://github.com/openweb-nl/git-sync","last_synced_at":"2025-04-22T04:33:04.694Z","repository":{"id":15985329,"uuid":"56684379","full_name":"openweb-nl/git-sync","owner":"openweb-nl","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-21T22:14:32.000Z","size":9,"stargazers_count":16,"open_issues_count":4,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T17:03:01.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/openweb-nl.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}},"created_at":"2016-04-20T12:20:16.000Z","updated_at":"2023-07-06T17:00:08.000Z","dependencies_parsed_at":"2022-07-20T22:54:53.628Z","dependency_job_id":null,"html_url":"https://github.com/openweb-nl/git-sync","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/openweb-nl%2Fgit-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fgit-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fgit-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fgit-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openweb-nl","download_url":"https://codeload.github.com/openweb-nl/git-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223888407,"owners_count":17220083,"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":[],"created_at":"2024-11-09T22:08:20.545Z","updated_at":"2024-11-09T22:08:21.137Z","avatar_url":"https://github.com/openweb-nl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Forked from [kubernetes contrib]\n\n# Usage\n## without docker compose\n```bash\ndocker volume create -d local --name website_sources\n\ndocker run --name git-sync -d  \\\n    -e GIT_SYNC_REPO=https://github.com/openweb-nl/website-static.git \\\n    -e GIT_SYNC_DEST=/git \\\n    -e GIT_SYNC_BRANCH=master \\\n    -e GIT_SYNC_REV=FETCH_HEAD \\\n    -e GIT_SYNC_WAIT=10 \\\n    -v website_sources:/git openweb/git-sync:0.0.1\n\ndocker run --name nginx \\\n    -d -p 8080:80 -v website_sources:/usr/share/nginx/html nginx\n```\n## with docker compose\n\nCreate a file called docker-compose.yml with the following content.\n```yml\nversion: '2'\n\nservices:\n  nginx:\n    image: nginx:latest\n    ports:\n      - \"8080:80\"\n    volumes:\n      - website_sources:/usr/share/nginx/html:z\n    depends_on:\n      - git-sync\n    restart: always\n  git-sync:\n    image: openweb/git-sync:0.0.1\n    environment:\n      GIT_SYNC_REPO: \"https://github.com/openweb-nl/website-static.git\"\n      GIT_SYNC_DEST: \"/git\"\n      GIT_SYNC_BRANCH: \"master\"\n      GIT_SYNC_REV: \"FETCH_HEAD\"\n      GIT_SYNC_WAIT: \"10\"\n    volumes:\n      - website_sources:/git:z\n    restart: always\nvolumes:\n  website_sources:\n    driver: local\n```\nThen start the containers with running the following command\n```bash\ndocker-compose up -d\n```\n\n[kubernetes contrib]: \u003chttps://github.com/joemccann/dillinger\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenweb-nl%2Fgit-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenweb-nl%2Fgit-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenweb-nl%2Fgit-sync/lists"}