summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2017-10-02 23:24:52 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2017-10-02 23:24:52 +0200
commit288bf8645cd21cb2cd6d10dc0809146ca0b682bb (patch)
treecfa2f1eb0c219ec68d0a9f1920be9c7a5c33ac82
downloadphp-fpm-288bf8645cd21cb2cd6d10dc0809146ca0b682bb.zip
php-fpm-288bf8645cd21cb2cd6d10dc0809146ca0b682bb.tar.gz
php-fpm-288bf8645cd21cb2cd6d10dc0809146ca0b682bb.tar.xz
Initial php-fpm repository
-rw-r--r--Dockerfile47
-rw-r--r--run-php-fpm.sh3
2 files changed, 50 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..cfbfe5a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,47 @@
+FROM fedora:22
+MAINTAINER http://fedoraproject.org/wiki/Cloud
+
+
+RUN dnf -y update && dnf clean all
+RUN dnf -y install yum-utils && dnf clean all
+
+
+# Version of PHP in Fedora 26: 7.1.9
+# We need PHP version 5.6.30 here
+# So we will use Remi Repository
+
+RUN rpm -ivh http://rpms.famillecollet.com/fedora/22/remi/x86_64/remi-release-22-4.fc22.remi.noarch.rpm && \
+ yum-config-manager --enable remi
+
+
+RUN dnf -y install php-fpm \
+ php-php-gettext \
+ php-mysqlnd \
+ php-pdo \
+ php-imap \
+ php-simplepie \
+ php-mbstring \
+ php-pear \
+ php-mcrypt \
+ php-domxml-php4-php5 \
+ php-cli \
+ php-snmp \
+ php-ldap \
+ php-pgsql \
+ php-process \
+ php-IDNA_Convert \
+ php-xml \
+ php-common \
+ php-gd \
+ php-pecl-memcache \
+ php-pecl-memcached \
+&& dnf clean all
+
+EXPOSE 9000
+
+# Simple startup script to avoid some issues observed with container restart
+ADD run-php-fpm.sh /run-php-fpm.sh
+RUN chmod -v +x /run-php-fpm.sh
+
+VOLUME ["/etc/php-fpm.d", "/run/php-fpm", "/var/log/php-fpm", "/var/www/html"]
+CMD ["/run-php-fpm.sh"]
diff --git a/run-php-fpm.sh b/run-php-fpm.sh
new file mode 100644
index 0000000..43e52fe
--- /dev/null
+++ b/run-php-fpm.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec /usr/sbin/php-fpm --nodaemonize