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

Update pecl extensions in update.sh #70

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion php7.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.1/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.1/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.1/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.2/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.2/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
2 changes: 1 addition & 1 deletion php7.2/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.13; \
pecl install APCu-5.1.14; \
pecl install memcached-3.0.4; \
pecl install redis-4.2.0; \
\
Expand Down
35 changes: 31 additions & 4 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@ current="$(curl -fsSL 'https://downloads.joomla.org/api/v1/latest/cms' | jq -r '
urlVersion=$(echo $current | sed -e 's/\./-/g')
sha1="$(curl -fsSL "https://downloads.joomla.org/api/v1/signatures/cms/$urlVersion" | jq -r --arg file "Joomla_${current}-Stable-Full_Package.tar.bz2" '.[] | .[] | select(.filename == $file).sha1')"

apcu_version="$(
git ls-remote --tags https://github.com/krakjoe/apcu.git \
| cut -d/ -f3 \
| grep -vE -- '-rc|-b' \
| sed -E 's/^v//' \
| sort -V \
| tail -1
)"

memcached_version="$(
git ls-remote --tags https://github.com/php-memcached-dev/php-memcached.git \
| cut -d/ -f3 \
| grep -vE -- '-rc|-b' \
| sed -E 's/^[rv]//' \
| sort -V \
| tail -1
)"

redis_version="$(
git ls-remote --tags https://github.com/phpredis/phpredis.git \
| cut -d/ -f3 \
| grep -viE '[a-z]' \
| tr -d '^{}' \
| sort -V \
| tail -1
)"

declare -A variantExtras=(
[apache]='\n# Enable Apache Rewrite Module\nRUN a2enmod rewrite\n'
[fpm]=''
Expand All @@ -31,10 +58,10 @@ declare -A variantBases=(
declare -A pecl_versions=(
[php5-APCu]='4.0.11'
[php5-memcached]='2.2.0'
[php5-redis]='4.2.0'
[php7-APCu]='5.1.13'
[php7-memcached]='3.0.4'
[php7-redis]='4.2.0'
[php5-redis]="$redis_version"
[php7-APCu]="$apcu_version"
[php7-memcached]="$memcached_version"
[php7-redis]="$redis_version"
)

travisEnv=
Expand Down