Skip to content

Commit 6c0a5da

Browse files
authored
Merge pull request moodlehq#103 from stronk7/7.4-buster
7.4 buster
2 parents 8f9bcf8 + 5d6c33f commit 6c0a5da

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.3-apache-buster
1+
FROM php:7.4-apache-buster
22

33
ADD root/ /
44
# Fix the original permissions of /tmp, the PHP default upload tmp dir.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Moodle PHP environment configured for Moodle development based on [Official PH
66

77
| PHP Version | Variant | Tags | Status |
88
|--------------|---------|------------------|--------|
9-
| PHP 7.3 | Buster | 7.3-buster | [![Build Status](https://travis-ci.org/moodlehq/moodle-php-apache.svg?branch=7.3-buster)](https://travis-ci.org/moodlehq/moodle-php-apache)|
9+
| PHP 7.4 | Buster | 7.4, 7.4-buster | [![Build Status](https://travis-ci.org/stronk7/moodle-php-apache.svg?branch=7.4-buster)](https://travis-ci.org/stronk7/moodle-php-apache)|
1010

1111
For a complete list of supported versions, look to the [master README](https://github.com/moodlehq/moodle-php-apache/tree/master).
1212

hooks/post_push

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# A space-separated list of additional tags to place on this image.
6+
additionalTags=(7.4)
7+
8+
# Tag and push image for each additional tag
9+
for tag in ${additionalTags[@]}; do
10+
echo "Tagging {$IMAGE_NAME} as ${DOCKER_REPO}:${tag}"
11+
docker tag $IMAGE_NAME ${DOCKER_REPO}:${tag}
12+
13+
echo "Pushing ${DOCKER_REPO}:${tag}"
14+
docker push ${DOCKER_REPO}:${tag}
15+
done

root/tmp/setup/php-extensions.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "Installing apt dependencies"
77
# Build packages will be added during the build, but will be removed at the end.
88
BUILD_PACKAGES="gettext gnupg libcurl4-openssl-dev libfreetype6-dev libicu-dev libjpeg62-turbo-dev \
99
libldap2-dev libmariadbclient-dev libmemcached-dev libpng-dev libpq-dev libxml2-dev libxslt-dev \
10-
unixodbc-dev"
10+
unixodbc-dev uuid-dev"
1111

1212
# Packages for Postgres.
1313
PACKAGES_POSTGRES="libpq5"
@@ -51,19 +51,19 @@ docker-php-ext-install -j$(nproc) \
5151
xmlrpc
5252

5353
# GD.
54-
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
54+
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
5555
docker-php-ext-install -j$(nproc) gd
5656

5757
# LDAP.
5858
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
5959
docker-php-ext-install -j$(nproc) ldap
6060

6161
# Memcached, MongoDB, Redis, APCu, igbinary.
62-
pecl install memcached mongodb redis apcu igbinary
63-
docker-php-ext-enable memcached mongodb redis apcu igbinary
62+
pecl install memcached mongodb redis apcu igbinary uuid
63+
docker-php-ext-enable memcached mongodb redis apcu igbinary uuid
6464

6565
# ZIP
66-
docker-php-ext-configure zip --with-libzip
66+
docker-php-ext-configure zip --with-zip
6767
docker-php-ext-install zip
6868

6969
echo 'apc.enable_cli = On' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini

root/tmp/setup/sqlsrv-extension.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ ACCEPT_EULA=Y apt-get install -y msodbcsql17
1515

1616
ln -fsv /opt/mssql-tools/bin/* /usr/bin
1717

18-
# Need 5.5.0preview (or later) for PHP 7.3 support
19-
pecl install sqlsrv-5.6.1
18+
# Need 5.7.0preview (or later) for PHP 7.4 support
19+
pecl install sqlsrv-5.7.0preview
2020
docker-php-ext-enable sqlsrv

tests/fixtures/test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'xsl',
1919
'xmlrpc',
2020
'zip',
21+
'uuid'
2122
];
2223

2324
$buffer = '';;

0 commit comments

Comments
 (0)