feat: PHP 扩展选项默认增加 imagick (#168)

This commit is contained in:
zhengkunwang223 2023-06-29 11:34:36 +08:00 committed by GitHub
parent 596d533708
commit f05ec04cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 109 additions and 31 deletions

View File

@ -121,6 +121,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------" echo "---------- Install imagick ----------"
install-php-extensions imagick install-php-extensions imagick
fi fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end # end

View File

@ -121,6 +121,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------" echo "---------- Install imagick ----------"
install-php-extensions imagick install-php-extensions imagick
fi fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end # end

View File

@ -121,6 +121,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -83,8 +83,12 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------" echo "---------- Install imagick ----------"
install-php-extensions imagick install-php-extensions imagick
fi fi
# end
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end
if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then
echo "---------- Install pdo_mysql ----------" echo "---------- Install pdo_mysql ----------"

View File

@ -121,6 +121,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------" echo "---------- Install imagick ----------"
install-php-extensions imagick install-php-extensions imagick
fi fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end # end

View File

@ -121,6 +121,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------" echo "---------- Install imagick ----------"
install-php-extensions imagick install-php-extensions imagick
fi fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end # end

View File

@ -117,6 +117,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -72,6 +72,23 @@ installExtensionFromTgz()
docker-php-ext-enable ${extensionName} docker-php-ext-enable ${extensionName}
} }
# install use install-php-extensions
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
install-php-extensions ioncube_loader
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end
if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then
echo "---------- Install pdo_mysql ----------" echo "---------- Install pdo_mysql ----------"
@ -208,16 +225,6 @@ if [[ -z "${EXTENSIONS##*,hprose,*}" ]]; then
docker-php-ext-enable hprose docker-php-ext-enable hprose
fi fi
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
install-php-extensions ioncube_loader
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0

View File

@ -117,6 +117,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -73,6 +73,24 @@ installExtensionFromTgz()
} }
# install use install-php-extensions
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
install-php-extensions ioncube_loader
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end
if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then
echo "---------- Install pdo_mysql ----------" echo "---------- Install pdo_mysql ----------"
docker-php-ext-install ${MC} pdo_mysql docker-php-ext-install ${MC} pdo_mysql
@ -208,16 +226,6 @@ if [[ -z "${EXTENSIONS##*,hprose,*}" ]]; then
docker-php-ext-enable hprose docker-php-ext-enable hprose
fi fi
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
install-php-extensions ioncube_loader
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0

View File

@ -117,6 +117,10 @@
{ {
"label": "sg11", "label": "sg11",
"value": "sourceguardian" "value": "sourceguardian"
},
{
"label": "imagick",
"value": "imagick"
} }
], ],
"envKey": "PHP_EXTENSIONS", "envKey": "PHP_EXTENSIONS",

View File

@ -72,6 +72,23 @@ installExtensionFromTgz()
docker-php-ext-enable ${extensionName} docker-php-ext-enable ${extensionName}
} }
# install use install-php-extensions
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
install-php-extensions ioncube_loader
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
# end
if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then
echo "---------- Install pdo_mysql ----------" echo "---------- Install pdo_mysql ----------"
@ -208,16 +225,6 @@ if [[ -z "${EXTENSIONS##*,hprose,*}" ]]; then
docker-php-ext-enable hprose docker-php-ext-enable hprose
fi fi
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
install-php-extensions ioncube_loader
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0