Skip to content

Commit 79f660c

Browse files
committed
Migrating from pecl to pickle
1 parent 742d3b9 commit 79f660c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

extensions/core/docker-install.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ if [ -n "$PECL_EXTENSION" ]; then
2828
# if env ready?
2929

3030
# is phpize installed?
31-
if which pecl && which phpize; then
32-
echo "pecl found"
33-
which pecl
31+
if which pickle && which phpize; then
32+
echo "pickle found"
33+
which pickle
3434
else
3535
apt-get install -y --no-install-recommends build-essential php-pear php${PHP_VERSION}-dev pkg-config
36-
which pecl
36+
curl https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -o /usr/local/bin/pickle
37+
chmod +x /usr/local/bin/pickle
3738
fi
3839

39-
pecl install $PECL_EXTENSION
40+
pickle install $PECL_EXTENSION
4041
echo "extension=${PHP_EXT_NAME:-${PECL_EXTENSION}}.so" > /etc/php/${PHP_VERSION}/mods-available/${PHP_EXT_NAME:-${PECL_EXTENSION}}.ini
4142
# Adding this in the list of Ubuntu extensions because we use that list as a base for the modules list.
4243
# TODO: question: cannot we use /etc/php/mods-available instead???

extensions/core/install_all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ apt-get purge -y php-pear build-essential php${PHP_VERSION}-dev pkg-config
2323
apt-get autoremove -y
2424
apt-get clean
2525
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
26+
rm -f /usr/local/bin/pickle

0 commit comments

Comments
 (0)