{"id":19450432,"url":"https://github.com/ymc-github/mirror-mongo","last_synced_at":"2026-05-04T21:33:25.038Z","repository":{"id":95798669,"uuid":"225909564","full_name":"YMC-GitHub/mirror-mongo","owner":"YMC-GitHub","description":"a docker image base on alpine with mongo;build with automation tool.","archived":false,"fork":false,"pushed_at":"2019-12-22T23:16:27.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:23:54.655Z","etag":null,"topics":["automation","dkf","docker","mongo","ymc"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YMC-GitHub.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":"2019-12-04T16:25:21.000Z","updated_at":"2021-06-14T10:28:47.000Z","dependencies_parsed_at":"2023-04-08T05:02:15.869Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/mirror-mongo","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/YMC-GitHub/mirror-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/mirror-mongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mongo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260843001,"owners_count":23071454,"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":["automation","dkf","docker","mongo","ymc"],"created_at":"2024-11-10T16:37:28.569Z","updated_at":"2026-05-04T21:33:20.017Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alpine-mongo\n\n## desc\n\na docker image base on alpine with mongo\n\n## how to use with developer?\n\n### define config\n```\ncat \u003etool/hub_list.txt \u003c\u003cEOF\n#repo-owner-pass\n#hub.docker.com=your user =your pass\nregistry.cn-hangzhou.aliyuncs.com=xxx=xxx\n EOF\n```\n\n\n```\ncat \u003etool/img_list.txt \u003c\u003cEOF\n#name-label=name-label\nmongo-alpine-3.8.4=mongo-alpine-3.8.4\nmongo-alpine-3.9.4=mongo-alpine-3.9.4\n#mongo-alpine-3.10.3=mongo-alpine-3.10.3\n EOF\n```\n\n\n### build image\nbuild the image with your config\n```\n./tool/build.sh\n```\n\nit will build image mongo:alpine-3.8.4 and mongo:alpine-3.9.4 .\n\nthe mongo:alpine-3.10.3 will not be build with `#` comment.\n\n### test image\ntest the image you build\n```\n./tool/test.sh\n```\n\nit will test image mongo:alpine-3.8.4 and mongo:alpine-3.9.4 .\n\n### push image\n\ntag and push the image to some docker hub ,eg. docker hub ,aliyun,qiniu ...\n```\nimg_ns=yemiancheng\n./tool/push.sh \"$img_ns\"\n```\n\nit will tag image for docker hub registry.cn-hangzhou.aliyuncs.com ,so there will be:\n```\nregistry.cn-hangzhou.aliyuncs.com/yemiancheng/mongo:alpine-3.8.4\nregistry.cn-hangzhou.aliyuncs.com/yemiancheng/mongo:alpine-3.9.4\n```\n\nthe hub.docker.com will not be taged with `#` comment.\n\n\nit will push image :\n```\nregistry.cn-hangzhou.aliyuncs.com/yemiancheng/mongo:alpine-3.8.4\nregistry.cn-hangzhou.aliyuncs.com/yemiancheng/mongo:alpine-3.9.4\n```\n\nthe hub.docker.com will not be pushed with `#` comment.\n\nso that you need to set pass in tool/hub_list.txt . and for secure dont let other person know it.\n\n## how to use with production ?\n\n### pull image with docker cli\n```\ntag=registry.cn-hangzhou.aliyuncs.com/yemiancheng/mongo:alpine-X.X.X\ndocker pull \"$tag\"\n```\n\n### run image with docker cli\n```\ndocker run -d --name mongo -p 3306:3306 -v $(pwd):/app -e mongo_DATABASE=admin -e mongo_USER=huahua -e mongo_PASSWORD=MjAxOS -e mongo_ROOT_PASSWORD=jo1NQo \"$tag\"\n```\n\nnote:in the .env file , you can change the different values to suit your needs.\n\n### uses with a dockerfile \n```\nFROM registry.cn-hangzhou.aliyuncs.com/yemiancheng/mongo:alpine-3.9.4\n```\n\nyour can run with docker cli :\n```\ndocker run -v $(pwd)/mongo/data/:/data/db/mongo -d -p 27017:27017 --name mongo-alpine-3.9.4 where/your/dockerfile\n```\n\nor your can run with docker-compose ,\n\nor your can run with k8s .\n\n## building log\n\n```\n#2019-12-06 17:38:00\nok:mongo-3.4.10-alpine-3.7.3\nok:mongo-3.6.7-alpine-3.8.4\nok:mongo-4.0.5-alpine-3.9.4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fmirror-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fmirror-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fmirror-mongo/lists"}