{"id":19217123,"url":"https://github.com/8ctopus/mariadb-alpine","last_synced_at":"2025-04-10T18:43:53.293Z","repository":{"id":63241631,"uuid":"252045460","full_name":"8ctopus/mariadb-alpine","owner":"8ctopus","description":"A super light docker MariaDB installation on top of Alpine Linux for development purposes","archived":false,"fork":false,"pushed_at":"2025-03-27T12:47:54.000Z","size":91,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T22:46:13.879Z","etag":null,"topics":["alpine-linux","docker","docker-image","mariadb"],"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/8ctopus.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":"2020-04-01T01:56:30.000Z","updated_at":"2025-03-27T12:47:54.000Z","dependencies_parsed_at":"2024-05-09T09:09:03.848Z","dependency_job_id":null,"html_url":"https://github.com/8ctopus/mariadb-alpine","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fmariadb-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fmariadb-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fmariadb-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fmariadb-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8ctopus","download_url":"https://codeload.github.com/8ctopus/mariadb-alpine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271920,"owners_count":21075800,"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":["alpine-linux","docker","docker-image","mariadb"],"created_at":"2024-11-09T14:20:10.503Z","updated_at":"2025-04-10T18:43:53.286Z","avatar_url":"https://github.com/8ctopus.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## docker mariadb alpine ![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/8ct8pus/mariadb-alpine?sort=semver) ![Docker Pulls](https://img.shields.io/docker/pulls/8ct8pus/mariadb-alpine)\n\nA super light docker `MariaDB` installation on top of Alpine Linux for developers.\n\n- `MariaDB` 11.4.5\n- `zsh` 5.9\n- `Alpine` 3.21.3\n\n_Note_: for the web server plus MariaDB, check https://github.com/8ctopus/php-sandbox\n\n## cool features\n\n- MariaDB configuration files are exposed on the host.\n- All changes to config files are automatically applied (hot reload).\n\n_Note_: On Windows [file changes notification to the container doesn't work with the WSL 2 engine](https://github.com/8ctopus/apache-php-fpm-alpine/issues), you need to use the `Hyper-V` engine. Uncheck `Use WSL 2 based engine`. What this means, is that files you update on Windows are not updated inside the container unless you use `Hyper-V`.\n\n## quick start\n\n- download [`docker-compose.yml`](https://github.com/8ctopus/mariadb-alpine/blob/master/docker-compose.yml)\n- start `Docker Desktop` and run `docker-compose up`\n- connect to MariaDB on `localhost`\n\n    hostname: localhost\n    port: 3306\n    user: root\n    password: 123 (ROOT_PASSWORD environmental variable)\n\n## use container\n\nStarting the container with `docker-compose` offers all functionalities.\n\n```sh\n# start container in detached mode on Windows in cmd\nstart /B docker-compose up\n\n# start container in detached mode on linux, mac and mintty\ndocker-compose up \u0026\n\n# view logs\ndocker-compose logs -f\n\n# stop container\ndocker-compose stop\n\n# delete container but not volume which contains database\ndocker-compose down\n\n# delete container and volume (database too)\ndocker-compose down -v\n```\n\n## get console to container\n\n```sh\ndocker exec -it mariadb zsh\n```\n\n## extend docker image\n\nIn this example, we add the php-curl extension.\n\n```sh\ndocker-compose up --detach\ndocker exec -it mariadb zsh\napk add curl\nexit\n\ndocker-compose stop\ndocker commit mariadb mariadb-alpine-curl:dev\n```\n\nTo use the new image, update the image link in the docker-compose file.\n\n## update docker image\n\nWhen you update the docker image version in `docker-compose.yml`, it's important to know that the existing configuration in the `docker` dir may cause problems.\\\nTo solve all problems, backup the existing dir then delete it.\n\n```sh\nrm -rf docker/\n```\n\n## build development image\n\n```sh\ndocker build -t mariadb-alpine:dev .\n```\n\n- update `docker-compose.yml`\n\n```yaml\nservices:\n  web:\n    # development image\n    image: mariadb-alpine:dev\n```\n\n## build docker image\n\n_Note_: Only for repository owner\n\n```sh\n# build image\ndocker build --no-cache -t 8ct8pus/mariadb-alpine:1.1.1 .\n\n# push image to docker hub\ndocker push 8ct8pus/mariadb-alpine:1.1.1\n```\n\n## more info about the image\n\n    https://wiki.alpinelinux.org/wiki/MariaDB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8ctopus%2Fmariadb-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8ctopus%2Fmariadb-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8ctopus%2Fmariadb-alpine/lists"}