Skip to content

Commit

Permalink
Merge pull request #516 from drpayyne/arm64/php
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust authored Oct 14, 2021
2 parents 5767f62 + d8af12c commit 767d691
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions images/php/7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ RUN docker-php-ext-install \
xsl \
zip

ARG TARGETARCH

RUN cd /tmp \
&& curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
&& tar zxvf ioncube_loaders_lin_x86-64.tar.gz \
&& ARCH=$(if [ "$TARGETARCH" = "arm64" ]; then echo aarch64; else echo x86-64; fi;) \
&& curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_$ARCH.tar.gz \
&& tar zxvf ioncube_loaders_lin_$ARCH.tar.gz \
&& export PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") \
&& export PHP_EXT_DIR=$(php-config --extension-dir) \
&& cp "./ioncube/ioncube_loader_lin_${PHP_VERSION}.so" "${PHP_EXT_DIR}/ioncube.so" \
&& rm -rf ./ioncube \
&& rm ioncube_loaders_lin_x86-64.tar.gz \
&& rm ioncube_loaders_lin_$ARCH.tar.gz \
&& docker-php-ext-enable ioncube

RUN pecl channel-update pecl.php.net \
Expand Down
9 changes: 6 additions & 3 deletions images/php/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ RUN docker-php-ext-install \
xsl \
zip

ARG TARGETARCH

RUN cd /tmp \
&& curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
&& tar zxvf ioncube_loaders_lin_x86-64.tar.gz \
&& ARCH=$(if [ "$TARGETARCH" = "arm64" ]; then echo aarch64; else echo x86-64; fi;) \
&& curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_$ARCH.tar.gz \
&& tar zxvf ioncube_loaders_lin_$ARCH.tar.gz \
&& export PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") \
&& export PHP_EXT_DIR=$(php-config --extension-dir) \
&& cp "./ioncube/ioncube_loader_lin_${PHP_VERSION}.so" "${PHP_EXT_DIR}/ioncube.so" \
&& rm -rf ./ioncube \
&& rm ioncube_loaders_lin_x86-64.tar.gz \
&& rm ioncube_loaders_lin_$ARCH.tar.gz \
&& docker-php-ext-enable ioncube

RUN pecl channel-update pecl.php.net \
Expand Down

0 comments on commit 767d691

Please sign in to comment.