Skip to content

Commit

Permalink
Add alpine-php-redis devcontainer feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Oct 3, 2024
1 parent 8bce0f4 commit 73e8439
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions src/alpine-php-redis/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -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"
}
11 changes: 11 additions & 0 deletions src/alpine-php-redis/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-redis'"

apk --no-cache add autoconf g++ make
pecl install redis
docker-php-ext-enable redis

echo 'Done!'

0 comments on commit 73e8439

Please sign in to comment.