{"id":19078374,"url":"https://github.com/kickstarter/docker-s3-sync","last_synced_at":"2025-04-30T04:42:04.465Z","repository":{"id":18808800,"uuid":"22023238","full_name":"kickstarter/docker-s3-sync","owner":"kickstarter","description":"Docker container to sync SSH authorized keys from S3","archived":false,"fork":false,"pushed_at":"2016-04-06T19:26:05.000Z","size":314,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":135,"default_branch":"master","last_synced_at":"2025-03-30T12:41:26.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/kickstarter.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}},"created_at":"2014-07-20T01:16:35.000Z","updated_at":"2023-10-13T12:47:38.000Z","dependencies_parsed_at":"2022-08-20T19:00:49.644Z","dependency_job_id":null,"html_url":"https://github.com/kickstarter/docker-s3-sync","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kickstarter%2Fdocker-s3-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kickstarter%2Fdocker-s3-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kickstarter%2Fdocker-s3-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kickstarter%2Fdocker-s3-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kickstarter","download_url":"https://codeload.github.com/kickstarter/docker-s3-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249462195,"owners_count":21276364,"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-09T02:08:52.870Z","updated_at":"2025-04-18T08:32:38.156Z","avatar_url":"https://github.com/kickstarter.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker S3 Sync\n\nA docker container to periodically fetch files from S3.\n\nIt's useful for provisioning sensitive credentials.\n\n* Docker registry: [kickstarter/docker-s3-sync](https://registry.hub.docker.com/u/kickstarter/docker-s3-sync/)\n* GitHub: [kickstarter/docker-s3-sync](https://github.com/kickstarter/docker-s3-sync)\n\n## Usage:\n\nBasic docker example:\n```\n# Copy s3://mybucket/authorized_keys to /root/.ssh/authorized_keys\ndocker run \\\n-e S3_BUCKET=mybucket \\\n-e S3_KEY=authorized_keys \\\n-e DESTINATION=/data/authorized_keys \\\n-e MODE='0600' # Optional file mode\n-e OWNER_UID='1000' # Optional file owner\n-e OWNER_GID='1000' # Optional file group\n-v /root/.ssh:/data # Map /root/.ssh on the host to /data in the container\n--rm \\\nkickstarter/docker-s3-sync\n```\n\nAWS credentials are assumed to be provided via an IAM instance profile.\nTo use traditional AWS credentials, pass `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` env vars.\n\n### Convenient `docker-s3-sync` script\n\nA small ruby script is included to use the container more concisely.\n\nInstall it:\n```\ncurl -O /usr/local/bin/docker-s3-sync https://raw.githubusercontent.com/kickstarter/docker-s3-sync/v0.5.3/docker-s3-sync\nchmod +x /usr/local/bin/docker-s3-sync\n```\n\nUse it:\n```\ndocker-s3-sync -b BUCKET -k KEY [-i INTERVAL ] [-m MODE] [-u UID] [-g GID] DESTINATION\n\n# For example:\ndocker-s3-sync -b mybucket -k authorized_keys -m 0600 /root/.ssh/authorized_keys\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkickstarter%2Fdocker-s3-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkickstarter%2Fdocker-s3-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkickstarter%2Fdocker-s3-sync/lists"}