Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Freetype and JPEG support to GD #36

Merged
merged 6 commits into from
May 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions 7.4-alp3.13.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV \
XHPROF_VERSION=5.0.1\
ZEPHIR_VERSION=1.3.3 \
PHALCON_VERSION=4.0.0 \
SWOOLE_VERSION=4.6.6 \
SWOOLE_VERSION=4.6.7 \
SWOOLE_ASYNC_VERSION=4.5.5 \
LD_PRELOAD=/usr/lib/preloadable_libiconv.so \
PECL_EXTENSIONS="apcu ast ds ev grpc hrtime igbinary imagick lzf lua mongodb msgpack oauth pcov psr rdkafka redis \
Expand All @@ -22,29 +22,31 @@ RUN \
autoconf g++ file re2c make zlib-dev libtool pcre-dev libxml2-dev bzip2-dev libzip-dev \
icu-dev gettext-dev imagemagick-dev openldap-dev libpng-dev gmp-dev yaml-dev postgresql-dev \
libxml2-dev tidyhtml-dev libmemcached-dev libssh2-dev libevent-dev libev-dev librdkafka-dev lua-dev \
freetype-dev jpeg-dev libjpeg-turbo-dev oniguruma-dev \
# prod deps
&& apk add --no-cache icu gettext gnu-libiconv grpc imagemagick libzip libbz2 libxml2-utils openldap-back-mdb openldap yaml \
libpq tidyhtml imap-dev libmemcached libssh2 libevent libev librdkafka linux-headers lua zlib \
#
# php extensions
&& docker-php-source extract \
&& pecl channel-update pecl.php.net \
&& pecl install $PECL_EXTENSIONS \
&& pecl install $PECL_EXTENSIONS > /dev/null \
&& cd /usr/src/php/ext/ \
&& for BUNDLE_EXT in $PECL_BUNDLE; do pecl bundle $BUNDLE_EXT; done \
&& docker-php-ext-enable $(echo $PECL_EXTENSIONS | sed -E 's/\-[^ ]+//g') opcache \
# swoole
&& curl -sSLo swoole.tar.gz https://github.com/swoole/swoole-src/archive/v$SWOOLE_VERSION.tar.gz \
&& curl -sSLo swoole_async.tar.gz https://github.com/swoole/ext-async/archive/v$SWOOLE_ASYNC_VERSION.tar.gz \
&& tar xzf swoole.tar.gz && tar xzf swoole_async.tar.gz \
&& mv swoole-src-$SWOOLE_VERSION swoole && mv ext-async-$SWOOLE_ASYNC_VERSION swoole_async \
&& mv swoole-src-$SWOOLE_VERSION swoole && mv ext-async-$SWOOLE_ASYNC_VERSION \
&& rm -f swoole.tar.gz swoole_async.tar.gz \
# zephir_parser
&& curl -sSLo zephir_parser.tar.gz https://github.com/phalcon/php-zephir-parser/archive/v$ZEPHIR_VERSION.tar.gz \
&& tar xzf zephir_parser.tar.gz \
&& rm -f zephir_parser.tar.gz \
&& mv php-zephir-parser-$ZEPHIR_VERSION zephir_parser \
&& docker-php-ext-install -j "$(nproc)" $PHP_EXTENSIONS $PECL_BUNDLE \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd \
&& docker-php-ext-install -j "$(nproc)" $PHP_EXTENSIONS $PECL_BUNDLE > /dev/null \
&& cd /usr/local/etc/php/conf.d/ \
&& mv docker-php-ext-event.ini docker-php-ext-zevent.ini \
&& pecl clear-cache \
Expand Down
10 changes: 6 additions & 4 deletions 7.4.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV \
XHPROF_VERSION=5.0.1\
ZEPHIR_VERSION=1.3.3 \
PHALCON_VERSION=4.0.0 \
SWOOLE_VERSION=4.6.6 \
SWOOLE_VERSION=4.6.7 \
SWOOLE_ASYNC_VERSION=4.5.5 \
MAXMIND_VERSION=1.4.2 \
LD_PRELOAD=/usr/lib/preloadable_libiconv.so \
Expand All @@ -23,29 +23,31 @@ RUN \
autoconf g++ file re2c make zlib-dev libtool pcre-dev libxml2-dev bzip2-dev libzip-dev \
icu-dev gettext-dev imagemagick-dev openldap-dev libpng-dev gmp-dev yaml-dev postgresql-dev \
libxml2-dev tidyhtml-dev libmemcached-dev libssh2-dev libevent-dev libev-dev librdkafka-dev lua-dev \
freetype-dev jpeg-dev libjpeg-turbo-dev oniguruma-dev \
# prod deps
&& apk add --no-cache icu gettext gnu-libiconv grpc imagemagick libzip libbz2 libxml2-utils openldap-back-mdb openldap yaml \
libpq tidyhtml imap-dev libmemcached libssh2 libevent libev librdkafka linux-headers lua zlib \
#
# php extensions
&& docker-php-source extract \
&& pecl channel-update pecl.php.net \
&& pecl install $PECL_EXTENSIONS \
&& pecl install $PECL_EXTENSIONS > /dev/null \
&& cd /usr/src/php/ext/ \
&& for BUNDLE_EXT in $PECL_BUNDLE; do pecl bundle $BUNDLE_EXT; done \
&& docker-php-ext-enable $(echo $PECL_EXTENSIONS | sed -E 's/\-[^ ]+//g') opcache \
# swoole
&& curl -sSLo swoole.tar.gz https://github.com/swoole/swoole-src/archive/v$SWOOLE_VERSION.tar.gz \
&& curl -sSLo swoole_async.tar.gz https://github.com/swoole/ext-async/archive/v$SWOOLE_ASYNC_VERSION.tar.gz \
&& tar xzf swoole.tar.gz && tar xzf swoole_async.tar.gz \
&& mv swoole-src-$SWOOLE_VERSION swoole && mv ext-async-$SWOOLE_ASYNC_VERSION swoole_async \
&& mv swoole-src-$SWOOLE_VERSION swoole && mv ext-async-$SWOOLE_ASYNC_VERSION \
&& rm -f swoole.tar.gz swoole_async.tar.gz \
# zephir_parser
&& curl -sSLo zephir_parser.tar.gz https://github.com/phalcon/php-zephir-parser/archive/v$ZEPHIR_VERSION.tar.gz \
&& tar xzf zephir_parser.tar.gz \
&& rm -f zephir_parser.tar.gz \
&& mv php-zephir-parser-$ZEPHIR_VERSION zephir_parser \
&& docker-php-ext-install -j "$(nproc)" $PHP_EXTENSIONS $PECL_BUNDLE \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd \
&& docker-php-ext-install -j "$(nproc)" $PHP_EXTENSIONS $PECL_BUNDLE > /dev/null \
&& cd /usr/local/etc/php/conf.d/ \
&& mv docker-php-ext-event.ini docker-php-ext-zevent.ini \
&& pecl clear-cache \
Expand Down
11 changes: 7 additions & 4 deletions 8.0-alp3.13.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Jitendra Adhikari <jiten.adhikary@gmail.com>

ENV \
MAXMIND_VERSION=1.4.2 \
SWOOLE_VERSION=4.6.6 \
SWOOLE_VERSION=4.6.7 \
SWOOLE_ASYNC_VERSION=4.5.5 \
LD_PRELOAD=/usr/lib/preloadable_libiconv.so \
PECL_EXTENSIONS_FUTURE="ev event hrtime imagick lua ssh2-1.2 xlswriter yaf" \
Expand All @@ -22,21 +22,24 @@ RUN \
autoconf g++ file re2c make zlib-dev libtool aspell-dev pcre-dev libxml2-dev bzip2-dev libzip-dev \
icu-dev gettext-dev imagemagick-dev openldap-dev libpng-dev gmp-dev yaml-dev postgresql-dev \
libxml2-dev tidyhtml-dev libmemcached-dev libssh2-dev libevent-dev libev-dev librdkafka-dev lua-dev libxslt-dev \
freetype-dev jpeg-dev libjpeg-turbo-dev oniguruma-dev \
# prod deps
&& apk add --no-cache aspell gettext gnu-libiconv grpc icu imagemagick imap-dev libzip libbz2 libxml2-utils libpq \
libmemcached libssh2 libevent libev librdkafka libxslt linux-headers lua openldap openldap-back-mdb tidyhtml yaml zlib \
#
# php extensions
&& docker-php-source extract \
&& pecl channel-update pecl.php.net \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd \
&& docker-php-ext-install $PHP_EXTENSIONS > /dev/null \
&& pecl install $PECL_EXTENSIONS > /dev/null \
&& docker-php-ext-enable $(echo $PECL_EXTENSIONS | sed -E 's/\-[^ ]+//g') opcache \
&& cd /usr/src/php/ext/ \
# swoole
&& curl -sSLo swoole.tar.gz https://github.com/swoole/swoole-src/archive/v$SWOOLE_VERSION.tar.gz \
&& curl -sSLo swoole_async.tar.gz https://github.com/swoole/ext-async/archive/v$SWOOLE_ASYNC_VERSION.tar.gz \
&& tar xzf swoole.tar.gz && tar xzf swoole_async.tar.gz \
&& mv swoole-src-$SWOOLE_VERSION swoole && mv ext-async-$SWOOLE_ASYNC_VERSION swoole_async \
&& tar xzf swoole.tar.gz && mv swoole-src-$SWOOLE_VERSION swoole \
# && curl -sSLo swoole_async.tar.gz https://github.com/swoole/ext-async/archive/v$SWOOLE_ASYNC_VERSION.tar.gz \
# && tar xzf swoole_async.tar.gz && mv ext-async-$SWOOLE_ASYNC_VERSION swoole_async \
&& rm -f swoole.tar.gz swoole_async.tar.gz \
&& docker-php-ext-install -j "$(nproc)" swoole \
&& docker-php-source delete \
Expand Down
11 changes: 7 additions & 4 deletions 8.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Jitendra Adhikari <jiten.adhikary@gmail.com>

ENV \
MAXMIND_VERSION=1.4.2 \
SWOOLE_VERSION=4.6.6 \
SWOOLE_VERSION=4.6.7 \
SWOOLE_ASYNC_VERSION=4.5.5 \
LD_PRELOAD=/usr/lib/preloadable_libiconv.so \
PECL_EXTENSIONS_FUTURE="ev event hrtime imagick lua ssh2-1.2 xlswriter yaf" \
Expand All @@ -22,21 +22,24 @@ RUN \
autoconf g++ file re2c make zlib-dev libtool aspell-dev pcre-dev libxml2-dev bzip2-dev libzip-dev \
icu-dev gettext-dev imagemagick-dev openldap-dev libpng-dev gmp-dev yaml-dev postgresql-dev \
libxml2-dev tidyhtml-dev libmemcached-dev libssh2-dev libevent-dev libev-dev librdkafka-dev lua-dev libxslt-dev \
freetype-dev jpeg-dev libjpeg-turbo-dev oniguruma-dev \
# prod deps
&& apk add --no-cache aspell gettext gnu-libiconv grpc icu imagemagick imap-dev libzip libbz2 librdkafka libxml2-utils libpq \
libmemcached libssh2 libevent libev libxslt linux-headers lua openldap openldap-back-mdb tidyhtml yaml zlib \
#
# php extensions
&& docker-php-source extract \
&& pecl channel-update pecl.php.net \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd \
&& docker-php-ext-install $PHP_EXTENSIONS > /dev/null \
&& pecl install $PECL_EXTENSIONS > /dev/null \
&& docker-php-ext-enable $(echo $PECL_EXTENSIONS | sed -E 's/\-[^ ]+//g') opcache \
&& cd /usr/src/php/ext/ \
# swoole
&& curl -sSLo swoole.tar.gz https://github.com/swoole/swoole-src/archive/v$SWOOLE_VERSION.tar.gz \
&& curl -sSLo swoole_async.tar.gz https://github.com/swoole/ext-async/archive/v$SWOOLE_ASYNC_VERSION.tar.gz \
&& tar xzf swoole.tar.gz && tar xzf swoole_async.tar.gz \
&& mv swoole-src-$SWOOLE_VERSION swoole && mv ext-async-$SWOOLE_ASYNC_VERSION swoole_async \
&& tar xzf swoole.tar.gz && mv swoole-src-$SWOOLE_VERSION swoole \
# && curl -sSLo swoole_async.tar.gz https://github.com/swoole/ext-async/archive/v$SWOOLE_ASYNC_VERSION.tar.gz \
# && tar xzf swoole_async.tar.gz && mv ext-async-$SWOOLE_ASYNC_VERSION swoole_async \
&& rm -f swoole.tar.gz swoole_async.tar.gz \
&& docker-php-ext-install -j "$(nproc)" swoole \
&& docker-php-source delete \
Expand Down