diff --git a/README.md b/README.md index d643a78..394fd0d 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ - [alpine-php-pcntl](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-pcntl) - [alpine-php-pgsql](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-pgsql) - [alpine-php-posix](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-posix) +- [alpine-php-redis](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-redis) - [alpine-php-soap](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-soap) - [alpine-php-sockets](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-sockets) - [alpine-php-xdebug](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-xdebug) diff --git a/src/alpine-php-redis/devcontainer-feature.json b/src/alpine-php-redis/devcontainer-feature.json new file mode 100644 index 0000000..2fdad0e --- /dev/null +++ b/src/alpine-php-redis/devcontainer-feature.json @@ -0,0 +1,7 @@ +{ + "name": "alpine-php-redis", + "id": "alpine-php-redis", + "version": "0.0.1", + "description": "Installs php redis on alpine", + "documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-php-redis" +} \ No newline at end of file diff --git a/src/alpine-php-redis/install.sh b/src/alpine-php-redis/install.sh new file mode 100644 index 0000000..cacd534 --- /dev/null +++ b/src/alpine-php-redis/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +echo "Activating feature 'alpine-php-redis'" + +apk --no-cache add autoconf g++ make +pecl install redis +docker-php-ext-enable redis + +echo 'Done!'