{"id":19450431,"url":"https://github.com/ymc-github/mirror-mysql","last_synced_at":"2025-02-25T09:21:07.346Z","repository":{"id":95798672,"uuid":"225022270","full_name":"YMC-GitHub/mirror-mysql","owner":"YMC-GitHub","description":"a docker image base on alpine with mysql","archived":false,"fork":false,"pushed_at":"2019-12-02T02:58:33.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T23:46:05.657Z","etag":null,"topics":["dkf","docker","mysql","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-11-30T14:12:58.000Z","updated_at":"2021-06-14T10:29:06.000Z","dependencies_parsed_at":"2023-04-08T05:02:26.698Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/mirror-mysql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fmirror-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/mirror-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240637622,"owners_count":19833152,"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":["dkf","docker","mysql","ymc"],"created_at":"2024-11-10T16:37:28.364Z","updated_at":"2025-02-25T09:21:07.187Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alpine-mysql\n\n## desc\n\na docker image base on alpine with mysql\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\nmysql-alpine-3.8.4=mysql-alpine-3.8.4\nmysql-alpine-3.9.4=mysql-alpine-3.9.4\n#mysql-alpine-3.10.3=mysql-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 mysql:alpine-3.8.4 and mysql:alpine-3.9.4 .\n\nthe mysql: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 mysql:alpine-3.8.4 and mysql: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/mysql:alpine-3.8.4\nregistry.cn-hangzhou.aliyuncs.com/yemiancheng/mysql: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/mysql:alpine-3.8.4\nregistry.cn-hangzhou.aliyuncs.com/yemiancheng/mysql: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/mysql:alpine-X.X.X\ndocker pull \"$tag\"\n```\n\n### run image with docker cli\n```\ndocker run -d --name mysql -p 3306:3306 -v $(pwd):/app -e MYSQL_DATABASE=admin -e MYSQL_USER=huahua -e MYSQL_PASSWORD=MjAxOS -e MYSQL_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/mysql:alpine-3.9.4\n```\n\nyour can run with docker cli :\n```\ndocker run -v /mysql/data/:/var/lib/mysql -d -p 3306:3306 --name mysql-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-02 10:19:59\nok:mysql-10.1.41-alpine-3.7.3\nok:mysql-10.2.26-alpine-3.8.4\nok:mysql-10.3.17-alpine-3.9.4\nok:mysql-10.3.18-alpine-3.10.3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fmirror-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fmirror-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fmirror-mysql/lists"}