mirror of
https://github.com/macintoshplus/php.git
synced 2026-04-28 11:03:17 +02:00
Compare commits
104 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bc2da72ba | |||
| 36c93b4421 | |||
| a2ef1c9061 | |||
| 48b2725b85 | |||
| 3175f50878 | |||
| 27e912cc36 | |||
| 9f87921367 | |||
| d5a93aa197 | |||
| 7625c0fe08 | |||
| 87a48e67f2 | |||
| 95a913adf2 | |||
| 7007fb688b | |||
| 5d0752a106 | |||
| cec8a53db7 | |||
| 7374c8b343 | |||
| 695087a680 | |||
| ec10c5af00 | |||
| 34945d5900 | |||
| f38d429d22 | |||
| 402053c3ea | |||
| bd3b3f0106 | |||
| ab9580849c | |||
| c4ceeabe2f | |||
| af5df3e3f7 | |||
| 3f58759f92 | |||
| 6c9907979a | |||
| f9e9db1981 | |||
| baa6a738f8 | |||
| 925c9cf4bb | |||
| 79bcd2c5d9 | |||
| 43399f05d6 | |||
| 12a051cdfc | |||
| cc00a4619a | |||
| 6c4da24cc3 | |||
| 7c6c993a35 | |||
| 7ec17bef49 | |||
| 2e5fc4bc25 | |||
| a781e36c7a | |||
| 11ea1eb2c6 | |||
| 38903f30f4 | |||
| 332a1f50d6 | |||
| 8fd569655a | |||
| a7a4eb5331 | |||
| 88338162d9 | |||
| e66fd5841a | |||
| 984e656543 | |||
| 4694088fa2 | |||
| 39de451d77 | |||
| 3fcfd05955 | |||
| 0dfd0fd10b | |||
| b2dce3e9ff | |||
| 9924942ab9 | |||
| 0a401edeff | |||
| 7edf5ecadf | |||
| 09cb05b917 | |||
| a3c727fe23 | |||
| 51adc41fa8 | |||
| 7faf4f2981 | |||
| 2958c43391 | |||
| c481485e73 | |||
| 4ffaa69d02 | |||
| 2416f9fb17 | |||
| 79f44d3100 | |||
| b59bebd2b6 | |||
| 1027a1ed35 | |||
| 1e43f42155 | |||
| a6a413fb82 | |||
| 458144f528 | |||
| 5b18de767a | |||
| 801f09e75a | |||
| 12c6b1565a | |||
| 85d2cf5d37 | |||
| f07f68a54a | |||
| e796fd9496 | |||
| 7df903cd09 | |||
| bd75e1039e | |||
| fd82e6b7ac | |||
| 0e818c26d3 | |||
| af2dd9a031 | |||
| c1a7e2d783 | |||
| 882e34f3de | |||
| a041b87676 | |||
| ca77410572 | |||
| f9f5d502ad | |||
| 21df882d6a | |||
| d495ed7329 | |||
| cf04f51b6a | |||
| b71e8681e9 | |||
| 536ea5da88 | |||
| e0e14b73a0 | |||
| 747f0bf60e | |||
| c5a960bbd2 | |||
| b6b5da1ec6 | |||
| b2361162bd | |||
| 2f9a1e9d78 | |||
| 086c448b30 | |||
| 737886f4a7 | |||
| 8c335d44c0 | |||
| eb7b6816e6 | |||
| 0cf27d8d7e | |||
| 364acb0bf6 | |||
| c1fb91110c | |||
| 2689a565ba | |||
| fd110b1622 |
+9
-45
@@ -1,56 +1,20 @@
|
||||
##
|
||||
# Jb Nahan PHP 5.6 container
|
||||
# Jb Nahan PHP 7.2 container
|
||||
##
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER Jean-Baptiste Nahan <jean-baptiste@nahan.fr>
|
||||
FROM macintoshplus/php:base
|
||||
MAINTAINER Jean-Baptiste Nahan <814683+macintoshplus@users.noreply.github.com>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
|
||||
# Common packages
|
||||
ENV CA_CERTIFICATES_JAVA_VERSION 20161107~bpo8+1
|
||||
ARG uid=1000
|
||||
ARG gid=1000
|
||||
|
||||
RUN apt-get -y install curl wget locales nano git subversion sudo php5-dev librabbitmq-dev openjdk-8-jre-headless ca-certificates-java="$CA_CERTIFICATES_JAVA_VERSION"
|
||||
COPY certs/ /root/
|
||||
COPY install.sh /root/install.sh
|
||||
RUN chmod +x /root/install.sh
|
||||
RUN /root/install.sh
|
||||
|
||||
RUN echo "Europe/Paris" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
|
||||
RUN export LANGUAGE=en_US.UTF-8 && \
|
||||
export LANG=en_US.UTF-8 && \
|
||||
export LC_ALL=en_US.UTF-8 && \
|
||||
locale-gen en_US.UTF-8 && \
|
||||
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
|
||||
|
||||
RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
|
||||
RUN ln -s /usr/bin/java /bin/java
|
||||
|
||||
|
||||
# Apache
|
||||
RUN apt-get -y install pdftk mysql-client xfonts-75dpi libfontconfig1 libjpeg62-turbo libxrender1 xfonts-base fontconfig
|
||||
|
||||
COPY bin/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb /root/
|
||||
RUN dpkg -i /root/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb
|
||||
|
||||
# PHP
|
||||
RUN apt-get -y install php5-cli php5-curl php-soap php5-imagick php5-gd php5-mcrypt php5-mysql php5-xmlrpc php5-xsl php-apc php5-apcu php5-ldap php5-gmp php5-intl php5-redis php5-sqlite
|
||||
RUN cp /usr/share/php5/php.ini-development /etc/php5/cli/php.ini
|
||||
RUN sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php5/cli/php.ini
|
||||
RUN sed -i 's/\memory_limit\ \=\ 128M/memory_limit\ \=\ -1/g' /etc/php5/cli/php.ini
|
||||
RUN sed -i 's/disable_functions\ \=\ pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,/\;disable_functions\ \=\ pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,/g' /etc/php5/cli/php.ini
|
||||
#RUN sed -i 's/;include_path = ".:\/usr\/share\/php"/include_path = ".:\/var\/www\/library"/g' /etc/php5/cli/php.ini
|
||||
|
||||
|
||||
|
||||
#PEAR
|
||||
RUN pear update-channels && pear install pecl/amqp-1.9.1 && pear install pecl/xdebug-2.5.5
|
||||
RUN echo "extension=amqp.so" > /etc/php5/mods-available/amqp.ini
|
||||
RUN echo "zend_extension=xdebug.so" > /etc/php5/mods-available/xdebug.ini
|
||||
|
||||
#RUN cd /etc/php5/apache2/conf.d && ln -s ../../mods-available/amqp.ini 20-amqp.ini
|
||||
#RUN cd /etc/php5/cli/conf.d && ln -s ../../mods-available/amqp.ini 20-amqp.ini
|
||||
RUN php5enmod amqp xdebug
|
||||
|
||||
RUN useradd -s /bin/bash --home /sources --no-create-home phpuser
|
||||
COPY bin/fixright /
|
||||
RUN chmod +x /fixright
|
||||
|
||||
|
||||
@@ -1,23 +1,35 @@
|
||||
# php56
|
||||
Docker Image With PHP56 and many tools !
|
||||
# php74
|
||||
Docker Image With PHP 7.4 and many tools !
|
||||
|
||||
Dev tools :
|
||||
## Extensions
|
||||
|
||||
* GIT
|
||||
* SVN
|
||||
* Curl
|
||||
* Wget
|
||||
* Nano
|
||||
* openJdk
|
||||
* php7.4-dev
|
||||
* php7.4-cli
|
||||
* php7.4-bcmath
|
||||
* php7.4-curl
|
||||
* php7.4-gd
|
||||
* php7.4-mbstring
|
||||
* php7.4-mysql
|
||||
* php7.4-sqlite3
|
||||
* php7.4-xmlrpc
|
||||
* php7.4-xsl
|
||||
* php7.4-ldap
|
||||
* php7.4-gmp
|
||||
* php7.4-intl
|
||||
* php-redis
|
||||
* php7.4-zip
|
||||
* php7.4-soap
|
||||
* php7.4-xml
|
||||
* php7.4-common
|
||||
* php7.4-json
|
||||
* php7.4-opcache
|
||||
* php7.4-readline
|
||||
* php7.4-xdebug
|
||||
* php7.4-imagick
|
||||
* amqp-1.9.3
|
||||
* pdo_sqlsrv
|
||||
* sqlsrv
|
||||
|
||||
Executable tools :
|
||||
## Disabled Extensions
|
||||
|
||||
* wkhtmltopdf
|
||||
* pdftk
|
||||
|
||||
Dev quality :
|
||||
|
||||
* PHP Mess Detector (phpmd)
|
||||
* PHP_CodeSniffer (with Symfony2 rules)
|
||||
|
||||
This image has already used for run website (with macintoshplus/apache2-php:php56), run RabbitMQ worker, run tests and make PHPCS and PHPMD repport.
|
||||
php7.4-apcu
|
||||
|
||||
Binary file not shown.
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIR=$(dirname $0)
|
||||
|
||||
cd $DIR
|
||||
|
||||
docker build -t php74 --network host .
|
||||
|
||||
Binary file not shown.
+64
@@ -0,0 +1,64 @@
|
||||
#!/bin/sh -ex
|
||||
##
|
||||
# Jb Nahan PHP 7.4 container
|
||||
##
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
# Sury : PHP Sources
|
||||
wget -q -O - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
|
||||
echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/sury-php.list
|
||||
|
||||
# Blackfire
|
||||
wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add -
|
||||
echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list
|
||||
|
||||
# PHP
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get -y install php7.4-dev php7.4-cli php7.4-bcmath php7.4-curl php-pear php7.4-gd php7.4-mbstring php7.4-mysql php7.4-sqlite3 php7.4-xmlrpc php7.4-xsl php7.4-ldap php7.4-gmp php7.4-intl php7.4-zip php7.4-soap php7.4-xml php7.4-common php7.4-json php7.4-opcache php7.4-readline
|
||||
# Disabled ext from repos : php7.4-imagick php7.4-xdebug php7.4-apcu
|
||||
# Disable dependencies : libmagickwand-6.q16-dev
|
||||
# Disabled php-redis
|
||||
|
||||
sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php/7.4/cli/php.ini
|
||||
sed -i 's/\memory_limit\ \=\ 128M/memory_limit\ \=\ -1/g' /etc/php/7.4/cli/php.ini
|
||||
sed -i 's/\display_errors\ \=\ Off/display_errors\ \=\ On/g' /etc/php/7.4/cli/php.ini
|
||||
sed -i 's/disable_functions\ \=\ pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,/\;disable_functions\ \=\ pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,/g' /etc/php/7.4/cli/php.ini
|
||||
|
||||
pecl channel-update pecl.php.net
|
||||
## Fix Tar Error
|
||||
#wget https://github.com/pear/Archive_Tar/releases/download/1.4.3/Archive_Tar-1.4.3.tgz
|
||||
#tar -xvf Archive_Tar-1.4.3.tgz
|
||||
#cp Archive_Tar-1.4.3/Archive/Tar.php /usr/share/php/Archive/Tar.php
|
||||
#rm -rf Archive_Tar-1.4.3
|
||||
|
||||
pecl install sqlsrv-5.6.1
|
||||
pecl install pdo_sqlsrv-5.6.1
|
||||
echo "extension=sqlsrv" > /etc/php/7.4/mods-available/sqlsrv.ini
|
||||
echo "extension=pdo_sqlsrv" > /etc/php/7.4/mods-available/pdo_sqlsrv.ini
|
||||
|
||||
#PEAR
|
||||
pear upgrade
|
||||
pear install pecl/amqp
|
||||
echo "extension=amqp" > /etc/php/7.4/mods-available/amqp.ini
|
||||
|
||||
|
||||
pear install pecl/redis-5.1.1
|
||||
echo "extension=redis" > /etc/php/7.4/mods-available/redis.ini
|
||||
|
||||
apt-get install -y libmagickwand-dev libmagickcore-dev libmagickwand-6.q16-6 libmagickcore-6.q16-6
|
||||
pear install pecl/imagick
|
||||
echo "extension=imagick" > /etc/php/7.4/mods-available/imagick.ini
|
||||
|
||||
|
||||
pear install pecl/xdebug-2.8.0
|
||||
echo "zend_extension=xdebug" > /etc/php/7.4/mods-available/xdebug.ini
|
||||
|
||||
phpenmod -v 7.4 -s cli amqp sqlsrv pdo_sqlsrv redis xdebug imagick
|
||||
|
||||
#useradd -s /bin/bash --home /sources --no-create-home phpuser
|
||||
|
||||
groupadd -g ${gid} phpuser
|
||||
useradd -l -u ${uid} -g ${gid} -m -s /bin/bash phpuser
|
||||
usermod -a -G www-data phpuser
|
||||
|
||||
apt-get remove -y libgcc-8-dev php7.4-dev libmagickwand-dev libmagickcore-dev && apt-get autoremove -y
|
||||
Reference in New Issue
Block a user