2
0
Эх сурвалжийг харах

Add install-php-extensions

Ranger Chan 3 жил өмнө
parent
commit
1786c585b9

+ 1 - 0
README.md

@@ -242,6 +242,7 @@ It is recommended to keep your root docker config files in one repository, and y
 - `bin/fixowns`: This will fix filesystem ownerships within the container.
 - `bin/fixperms`: This will fix filesystem permissions within the container.
 - `bin/grunt`: Run the grunt binary. Ex. `bin/grunt exec`
+- `bin/install-php-extensions`: Install PHP extension in the container. Ex. `bin/install-php-extensions sourceguardian`
 - `bin/magento`: Run the Magento CLI. Ex: `bin/magento cache:flush`
 - `bin/mftf`: Run the Magento MFTF. Ex: `bin/mftf build:project`
 - `bin/mysql`: Run the MySQL CLI with database config from `env/db.env`. Ex. `bin/mysql -e "EXPLAIN core_config_data"` or`bin/mysql < magento.sql`

+ 10 - 0
compose/bin/install-php-extensions

@@ -0,0 +1,10 @@
+#!/bin/bash
+if ! bin/cliq ls /usr/local/bin/install-php-extensions; then
+  echo "Downloading install-php-extensions, just a moment..."
+  bin/rootnotty curl -sSLf \
+    -o /usr/local/bin/install-php-extensions \
+    https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions
+  bin/rootnotty chmod +x /usr/local/bin/install-php-extensions
+fi
+
+bin/root install-php-extensions "$@"