Skip to content

Commit

Permalink
feat: Add Alpine PHP mariadb feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed May 25, 2024
1 parent 94100ba commit dbb716e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- [alpine-php-gd](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-gd)
- [alpine-php-intl](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-intl)
- [alpine-php-magento](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-magento)
- [alpine-php-mariadb](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-mariadb)
- [alpine-php-mssql](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-mssql)
- [alpine-php-mysql](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-mysql)
- [alpine-php-pcntl](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-pcntl)
Expand Down
20 changes: 20 additions & 0 deletions src/alpine-php-mariadb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# alpine-php-mariadb (alpine-php-mariadb)

Installs mariadb driver for php on alpine

## Example Usage

```json
"features": {
"ghcr.io/cirolosapio/devcontainers-features/alpine-php-mariadb:0": {}
}
```





---

_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/cirolosapio/devcontainers-features/blob/main/src/alpine-php-mariadb/devcontainer-feature.json). Add additional notes to a `NOTES.md`._
7 changes: 7 additions & 0 deletions src/alpine-php-mariadb/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "alpine-php-mariadb",
"id": "alpine-php-mariadb",
"version": "0.0.1",
"description": "Installs mariadb driver for php on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-php-mariadb"
}
11 changes: 11 additions & 0 deletions src/alpine-php-mariadb/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -e

echo "Activating feature 'alpine-php-mariadb'"

apk --no-cache add mariadb-client
docker-php-ext-install pdo_mysql
docker-php-ext-enable pdo_mysql

echo 'Done!'

0 comments on commit dbb716e

Please sign in to comment.