diff --git a/src/alpine-php-xdebug/devcontainer-feature.json b/src/alpine-php-xdebug/devcontainer-feature.json new file mode 100644 index 0000000..af0bae3 --- /dev/null +++ b/src/alpine-php-xdebug/devcontainer-feature.json @@ -0,0 +1,18 @@ +{ + "name": "alpine-php-xdebug", + "id": "alpine-php-xdebug", + "version": "0.0.1", + "description": "Installs php xdebug on alpine", + "documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-php-xdebug", + "options": { + "version": { + "type": "string", + "default": "3.3.1", + "description": "Version of xdebug to install", + "proposals": [ + "3.3.1", + "3.2.2" + ] + } + } +} \ No newline at end of file diff --git a/src/alpine-php-xdebug/install.sh b/src/alpine-php-xdebug/install.sh new file mode 100644 index 0000000..23ca790 --- /dev/null +++ b/src/alpine-php-xdebug/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +echo "Activating feature 'alpine-php-xdebug'" + +apk --no-cache add autoconf g++ linux-headers make +pecl install xdebug-$VERSION +docker-php-ext-enable xdebug + +echo 'Done!'