Skip to content

Commit

Permalink
Merge pull request #3445 from bestlong/fix-70-php-worker-gnupg
Browse files Browse the repository at this point in the history
fix: php-worker gnupg
  • Loading branch information
bestlong committed Sep 4, 2023
2 parents 9e6ef99 + 6c7f1a8 commit cb44267
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions php-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,22 @@ RUN if [ ${INSTALL_BZ2} = true ]; then \

ARG INSTALL_GNUPG=false

RUN set -eux; if [ ${INSTALL_GNUPG} = true ]; then \
apk add --no-cache --no-progress --virtual BUILD_DEPS_PHP_GNUPG gpgme-dev; \
apk add --no-cache --no-progress gpgme; \
pecl install gnupg; \
docker-php-ext-enable gnupg; \
RUN set -eux; \
if [ ${INSTALL_GNUPG} = true ]; then \
apk add --no-cache --no-progress --virtual BUILD_DEPS_PHP_GNUPG gpgme-dev; \
if [ ${LARADOCK_PHP_VERSION} = "7.0" ]; then \
wget -O /tmp/gnupg.tgz "https://pecl.php.net/get/gnupg-1.5.1.tgz"; \
mkdir -p /tmp/gnupg; \
tar -C /tmp/gnupg -zxvf /tmp/gnupg.tgz --strip 1; \
cd /tmp/gnupg; \
phpize; \
./configure; \
make && make install; \
else \
pecl install gnupg; \
fi; \
docker-php-ext-enable gnupg; \
php -m | grep -oiE '^gnupg$'; \
fi

#Install LDAP
Expand Down

0 comments on commit cb44267

Please sign in to comment.