From 2e54041918d4362690390e3e6781185a3cd9036e Mon Sep 17 00:00:00 2001 From: cirolosapio Date: Tue, 13 Feb 2024 11:06:55 +0100 Subject: [PATCH] new feature alpine-php-xdebug --- .../devcontainer-feature.json | 18 ++++++++++++++++++ src/alpine-php-xdebug/install.sh | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/alpine-php-xdebug/devcontainer-feature.json create mode 100644 src/alpine-php-xdebug/install.sh 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!'