From c6b8498dc547e1eec4d692b8f86e420d5abd9ae9 Mon Sep 17 00:00:00 2001 From: cirolosapio Date: Fri, 26 Apr 2024 22:37:14 +0200 Subject: [PATCH] feat: Add Alpine PHP FTP devcontainer feature --- README.md | 1 + src/alpine-php-ftp/README.md | 20 ++++++++++++++++++++ src/alpine-php-ftp/devcontainer-feature.json | 7 +++++++ src/alpine-php-ftp/install.sh | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100644 src/alpine-php-ftp/README.md create mode 100644 src/alpine-php-ftp/devcontainer-feature.json create mode 100644 src/alpine-php-ftp/install.sh diff --git a/README.md b/README.md index d8d5da6..0fd7c25 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ - [alpine-patch](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-patch) - [alpine-pgsql-client](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-pgsql-client) - [alpine-php-composer](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-composer) +- [alpine-php-ftp](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-ftp) - [alpine-php-gd](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-gd) - [alpine-php-intl](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-intl) - [alpine-php-magento](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-php-magento) diff --git a/src/alpine-php-ftp/README.md b/src/alpine-php-ftp/README.md new file mode 100644 index 0000000..f1b43f4 --- /dev/null +++ b/src/alpine-php-ftp/README.md @@ -0,0 +1,20 @@ + +# alpine-php-ftp (alpine-php-ftp) + +Installs ftp extension for php on alpine + +## Example Usage + +```json +"features": { + "ghcr.io/cirolosapio/devcontainers-features/alpine-php-ftp:0": {} +} +``` + + + + + +--- + +_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/cirolosapio/devcontainers-features/blob/main/src/alpine-php-ftp/devcontainer-feature.json). Add additional notes to a `NOTES.md`._ diff --git a/src/alpine-php-ftp/devcontainer-feature.json b/src/alpine-php-ftp/devcontainer-feature.json new file mode 100644 index 0000000..ddec442 --- /dev/null +++ b/src/alpine-php-ftp/devcontainer-feature.json @@ -0,0 +1,7 @@ +{ + "name": "alpine-php-ftp", + "id": "alpine-php-ftp", + "version": "0.0.1", + "description": "Installs ftp extension for php on alpine", + "documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-php-ftp" +} \ No newline at end of file diff --git a/src/alpine-php-ftp/install.sh b/src/alpine-php-ftp/install.sh new file mode 100644 index 0000000..1d73186 --- /dev/null +++ b/src/alpine-php-ftp/install.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +echo "Activating feature 'alpine-ftp-pcntl'" + +docker-php-ext-install ftp + +echo 'Done!'