Skip to content

Commit

Permalink
new feature alpine-php-xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Feb 13, 2024
1 parent 31ee24e commit 2e54041
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/alpine-php-xdebug/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
11 changes: 11 additions & 0 deletions src/alpine-php-xdebug/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-xdebug'"

apk --no-cache add autoconf g++ linux-headers make
pecl install xdebug-$VERSION
docker-php-ext-enable xdebug

echo 'Done!'

0 comments on commit 2e54041

Please sign in to comment.