Skip to content
Open
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
47 changes: 47 additions & 0 deletions php74/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM outrigger/apache-php-base

RUN yum -y install \
https://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
yum -y install \
gcc-c++ \
make \
php74 \
php74-php-bcmath \
php74-php-devel \
php74-php-fpm \
php74-php-gd \
php74-php-mbstring \
php74-php-mcrypt \
php74-php-pecl-memcached \
Copy link

@chaunceyt chaunceyt Jun 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this PR https://github.com/phase2/docker-build/pull/47/files#diff-ce24a4205ce621c14ac1849960b386aaR38 you're bring in php74-php-pecl-memcache was this intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the php73 files and then search/replaced them so I'm not sure why that difference is there. It seems like we would want to be consistent between them so I'll troll through the git logs and see if I can spot anything about why either one was picked. Good catch.

php74-php-mysql \
php74-php-mysqlnd \
php74-php-opcache \
php74-php-pdo \
php74-php-pecl-xdebug \
php74-php-xml \
php74-php-pecl-yaml \
php74-php-pecl-zip && \
# There is no PHP 7 support for XHProf yet.
# php74-php-pecl-xhprof
yum clean all

ENV PHP_HOME /opt/remi/php74
RUN ln -sfv ${PHP_HOME}/root/usr/bin/* /usr/bin/ && \
ln -sfv ${PHP_HOME}/root/usr/sbin/* /usr/sbin/ && \
ln -sfv /dev/stderr /var${PHP_HOME}/log/php-fpm/error.log

# Install phpredis
ENV PHPREDIS_VERSION 3.1.5
RUN curl -L -o /tmp/phpredis.tar.gz "https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz" && \
tar -xzf /tmp/phpredis.tar.gz -C /tmp && \
rm /tmp/phpredis.tar.gz && \
cd "/tmp/phpredis-$PHPREDIS_VERSION" && \
phpize && \
./configure && \
make && \
make install && \
# Clean up build dependencies.
yum -y remove gcc-c++ make php74-php-devel && \
yum clean all

COPY root /
7 changes: 7 additions & 0 deletions php74/root/etc/confd/conf.d/www.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[template]
src = "www.conf.tmpl"
dest = "/etc/opt/remi/php74/php-fpm.d/www.conf"
uid = 0
gid = 0
mode = "0644"
keys = []
7 changes: 7 additions & 0 deletions php74/root/etc/confd/conf.d/xdebug.ini.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[template]
src = "xdebug.ini.tmpl"
dest = "/etc/opt/remi/php74/php.d/15-xdebug.ini"
uid = 0
gid = 0
mode = "0644"
keys = []
7 changes: 7 additions & 0 deletions php74/root/etc/confd/conf.d/xhprof.ini.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[template]
src = "xhprof.ini.tmpl"
dest = "/etc/opt/remi/php74/php.d/15-xhprof.ini"
uid = 0
gid = 0
mode = "0644"
keys = []
7 changes: 7 additions & 0 deletions php74/root/etc/confd/conf.d/yaml.ini.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[template]
src = "yaml.ini.tmpl"
dest = "/etc/opt/remi/php74/php.d/40-yaml.ini"
uid = 0
gid = 0
mode = "0644"
keys = []
1 change: 1 addition & 0 deletions php74/root/etc/fix-attrs.d/01-apache-logs-dir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/var/log/httpd true apache 0644 0755
1 change: 1 addition & 0 deletions php74/root/etc/opt/remi/php74/php.d/90-redis.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=redis.so
3 changes: 3 additions & 0 deletions php74/root/etc/services.d/php-fpm/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv sh

exec php-fpm -F -R