{"id":23080770,"url":"https://github.com/chen0040/dockerfile-centos-mariadb","last_synced_at":"2026-05-09T07:03:24.190Z","repository":{"id":85883897,"uuid":"90218325","full_name":"chen0040/dockerfile-centos-mariadb","owner":"chen0040","description":"Package provides the dockerfile which setup and run the mariadb on centos VM with configuration overwrite and database setup","archived":false,"fork":false,"pushed_at":"2017-05-04T04:07:28.000Z","size":85,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T13:48:00.348Z","etag":null,"topics":["centos-vm","docker-container","docker-image","mariadb"],"latest_commit_sha":null,"homepage":null,"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/chen0040.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":"2017-05-04T03:34:28.000Z","updated_at":"2019-10-23T12:51:20.000Z","dependencies_parsed_at":"2023-03-13T07:18:40.743Z","dependency_job_id":null,"html_url":"https://github.com/chen0040/dockerfile-centos-mariadb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chen0040/dockerfile-centos-mariadb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fdockerfile-centos-mariadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fdockerfile-centos-mariadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fdockerfile-centos-mariadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fdockerfile-centos-mariadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chen0040","download_url":"https://codeload.github.com/chen0040/dockerfile-centos-mariadb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fdockerfile-centos-mariadb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32810381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["centos-vm","docker-container","docker-image","mariadb"],"created_at":"2024-12-16T13:16:21.542Z","updated_at":"2026-05-09T07:03:24.184Z","avatar_url":"https://github.com/chen0040.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerfile for mariadb\n\nPackage provides the dockerfile which setup and run the mariadb on centos VM with configuration overwrite and database setup\n\n![Docker Project logo](docker.png) ![Mariadb Project logo](mariadb.png)\n\n# Features\n\n* The docker image is built from centos/systemd \n* Allow user to create a database in the mariadb if the database is not created when docker container is started\n* Allow user to configure the password for the 'root' account of mariadb\n* Allow user to user to ssh into the container to start or stop the mariadb if needed\n* Allow user to configure the mariadb such as default encoding, maximum connections, max packat allowed\n\n# Usage\n\nGit clone the project to your local computer:\n\n```bash\ngit clone https://github.com/chen0040/dockerfile-centos-mariadb.git\n```\n\n## Build the mariadb docker image\n\nRun the following command from the root folder of the project to build your own docker image:\n\n```bash\ndocker build -t xschen/mariadb .\n```\n\nYou can optionally save the image by running the following command:\n\n```bash\ndocker save -o xschen-mariadb.img xschen/mariadb\n```\n\n## Create and start the docker container\n\n```bash\ndocker run -it --name=xschen-mariadb -u 0  -d -p 3306:3306 xschen/mariadb\n```\n\nNow you should be able to connect to the mariadb from your local computer at the port 3306, \n \nan example of the data source url will be:\n\n\u003cpre\u003e\njdbc:mysql://127.0.0.1:3306/my_database?useSSL=false\u0026useUnicode=yes\u0026characterEncoding=UTF-8\n\u003c/pre\u003e\n\nNote that 127.0.0.1 may need to be replaced with the ip of your docker machine VM (depends how you set up your docker machine)\n\n## Start and stop the mariadb in the container\n\nTo start or stop the mariadb in the container, make sure that the container is running, then run the following command from your local computer:\n\n```bash\ndocker exec -it xschen-mariadb /bin/bash\n```\n\nOnce in the container, run the following command to start or stop the mariadb:\n\n```bash\n$ cd /home/xschen\n$ sudo ./start.sh\n```\n\n```bash\n$ cd /home/xschen\n$ sudo ./stop.sh\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchen0040%2Fdockerfile-centos-mariadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchen0040%2Fdockerfile-centos-mariadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchen0040%2Fdockerfile-centos-mariadb/lists"}