92 Commits

Author SHA1 Message Date
macintoshplus
4fe7ad1024 change 2019-12-02 22:05:33 +01:00
macintoshplus
fdd3916135 fix build 2019-12-02 21:54:37 +01:00
Jean-Baptiste Nahan
4c8a586e5e Merge pull request #3 from crobix/patch-3
Update install.sh
2019-12-02 19:23:56 +01:00
crobix
c9d99ad081 Update install.sh
update to debian buster
2019-12-02 16:52:15 +01:00
macintoshplus
a92c397b6d add sh options + use apt-get 2019-03-20 15:18:35 +01:00
Jean-Baptiste Nahan
f6965b1207 change sury key 2019-03-18 14:28:06 +01:00
Jean-Baptiste Nahan
0db7de1f91 change install ext 2019-03-18 14:23:59 +01:00
Jean-Baptiste Nahan
21e88573e7 Bump sqlsrv 5.6.0, pdo_sqlsrv 5.6.0, amqp 1.9.4 2019-03-15 07:43:35 +01:00
Jean-Baptiste Nahan
aaecd335f3 Update install.sh 2019-03-14 14:38:43 +01:00
Macintoshplus
ab9580849c add Blackfire.io 2018-11-12 11:19:58 +01:00
Macintoshplus
c4ceeabe2f fix build 2018-06-01 10:52:45 +02:00
Macintoshplus
af5df3e3f7 add build image script 2018-06-01 10:43:57 +02:00
Macintoshplus
3f58759f92 fix build 2018-06-01 10:20:59 +02:00
Macintoshplus
6c9907979a fix command err 2018-04-11 10:17:30 +02:00
Macintoshplus
f9e9db1981 fix build imagick 2018-04-11 09:24:13 +02:00
Macintoshplus
baa6a738f8 re-enable imagick 2018-04-11 09:06:12 +02:00
Macintoshplus
925c9cf4bb Update README.md 2018-03-01 09:25:01 +01:00
Macintoshplus
79bcd2c5d9 Update xdebug to final 2.6.0 2018-03-01 09:22:21 +01:00
Macintoshplus
43399f05d6 Disable Imagick 2018-01-10 11:54:16 +01:00
Macintoshplus
12a051cdfc change lib imagick 2018-01-10 10:40:39 +01:00
Macintoshplus
cc00a4619a add imagick dependency 2018-01-10 09:13:20 +01:00
Macintoshplus
6c4da24cc3 remove ".so" ext to php extension config file 2018-01-09 10:40:16 +01:00
Macintoshplus
7c6c993a35 change xdebug version 2018-01-09 10:31:00 +01:00
Macintoshplus
7ec17bef49 fix xdebug version to 2.5.5 2017-12-11 08:31:23 +01:00
Macintoshplus
2e5fc4bc25 upgrade sqlsrv 5.1.1preview and amqp 1.9.3 2017-11-21 09:01:12 +01:00
Macintoshplus
a781e36c7a add ext into list 2017-10-17 11:00:20 +02:00
Macintoshplus
11ea1eb2c6 ajout de l'extension bc-math 2017-10-17 10:48:53 +02:00
Macintoshplus
38903f30f4 rewrite install 2017-09-28 08:00:36 +02:00
Macintoshplus
332a1f50d6 change wd 2017-09-19 12:10:40 +02:00
Macintoshplus
8fd569655a clean docker file 2017-08-08 10:53:23 +02:00
Macintoshplus
a7a4eb5331 add ext from pecl 2017-08-08 10:51:49 +02:00
Macintoshplus
88338162d9 update for php 7.2 2017-08-08 08:49:28 +02:00
Macintoshplus
e66fd5841a remove 2 intermediate 2017-07-17 17:26:26 +02:00
Macintoshplus
984e656543 accept upgrade 2017-07-17 17:09:55 +02:00
Macintoshplus
4694088fa2 add php7.1-dev 2017-07-17 16:55:50 +02:00
Macintoshplus
39de451d77 separe update upgrade and install 2017-07-17 16:55:27 +02:00
Macintoshplus
3fcfd05955 remove php7.1-dev 2017-07-17 16:11:44 +02:00
Macintoshplus
0dfd0fd10b add php-dev and update pecl channel 2017-07-17 15:48:33 +02:00
Macintoshplus
b2dce3e9ff update readme 2017-07-03 18:18:53 +02:00
Macintoshplus
9924942ab9 update for use base image and clean certs 2017-07-03 18:18:22 +02:00
Macintoshplus
0a401edeff fix add keys 2017-06-30 12:33:08 +02:00
Macintoshplus
7edf5ecadf refactor add list and key 2017-06-30 07:51:50 +02:00
Macintoshplus
09cb05b917 replace wget by curl 2017-06-30 07:42:38 +02:00
Macintoshplus
a3c727fe23 remove custom wkhtmltopdf tool 2017-06-30 07:40:58 +02:00
Macintoshplus
51adc41fa8 update to strech 2017-06-30 07:36:54 +02:00
Macintoshplus
7faf4f2981 add libmagickwand-dev 2017-06-15 09:16:35 +02:00
Macintoshplus
2958c43391 Réinstall CodeSnifer & PHPMD 2017-06-15 08:47:34 +02:00
Macintoshplus
c481485e73 remove codding std sf3 and comment instal codesnifer and phpmd 2017-06-13 22:23:50 +02:00
Macintoshplus
4ffaa69d02 fix php 7.1 ini path 2017-06-13 21:59:36 +02:00
Macintoshplus
2416f9fb17 change amqp version and redis package 2017-06-13 21:58:24 +02:00
Macintoshplus
79f44d3100 update javacert 2017-06-13 21:43:19 +02:00
Macintoshplus
b59bebd2b6 remove dotdeb and add sury.org 2017-06-13 21:41:10 +02:00
Macintoshplus
1027a1ed35 update for php 7.1 2017-06-13 21:21:59 +02:00
Macintoshplus
1e43f42155 update java version 2017-03-21 10:38:52 +01:00
Macintoshplus
a6a413fb82 change working dir 2017-03-21 09:59:32 +01:00
Macintoshplus
458144f528 fix path error 2017-03-07 08:52:32 +01:00
Macintoshplus
5b18de767a Enable display error 2017-03-07 08:50:44 +01:00
Macintoshplus
801f09e75a Fix locale and libssl 2017-03-03 11:47:19 +01:00
Macintoshplus
12c6b1565a change java version 2017-03-03 09:20:28 +01:00
Macintoshplus
85d2cf5d37 change java ca version 2017-03-03 09:11:25 +01:00
Macintoshplus
f07f68a54a Remove DotDeb Repo for use the debian repo for php 7 2017-03-03 09:03:33 +01:00
Macintoshplus
e796fd9496 change the wkhtmltopdf install method 2017-03-03 08:45:28 +01:00
Macintoshplus
7df903cd09 Remove java link 2017-03-03 08:26:13 +01:00
Macintoshplus
bd75e1039e Fix Env 2017-03-03 08:01:30 +01:00
Macintoshplus
fd82e6b7ac Fix chain command 2017-03-03 07:47:02 +01:00
Macintoshplus
0e818c26d3 Fix Path 2017-03-03 07:45:34 +01:00
Macintoshplus
af2dd9a031 Fix Root folder path 2017-03-03 07:38:18 +01:00
Macintoshplus
c1a7e2d783 Add gnupg 2017-03-02 18:18:40 +01:00
Macintoshplus
882e34f3de Change MySQL source 2017-03-02 18:05:50 +01:00
Macintoshplus
a041b87676 Create mysql_key.pub 2017-03-02 18:02:01 +01:00
Macintoshplus
ca77410572 Change Debian Base for testing 2017-03-02 17:47:01 +01:00
Macintoshplus
f9f5d502ad Fix HTTPS transport 2017-03-02 16:25:56 +01:00
Macintoshplus
21df882d6a Fix order to install sql driver 2017-03-02 16:13:04 +01:00
Macintoshplus
d495ed7329 Add SQL SRV driver 2017-03-02 16:04:53 +01:00
Macintoshplus
cf04f51b6a Add soap module 2017-02-17 14:15:34 +01:00
Macintoshplus
b71e8681e9 Add mbstring ext 2017-02-14 14:45:50 +01:00
Macintoshplus
536ea5da88 Update CA Java Version 2017-02-09 09:53:55 +01:00
Macintoshplus
e0e14b73a0 Add Java and optimize 2017-02-09 09:44:50 +01:00
Macintoshplus
747f0bf60e Update AMQP version 2017-02-09 09:39:04 +01:00
Macintoshplus
c5a960bbd2 Add SQLite PHP Module 2017-01-31 12:21:40 +01:00
Macintoshplus
b6b5da1ec6 Add PHP 7.0 zip ext 2016-09-12 09:57:28 +02:00
Macintoshplus
b2361162bd change list ext 2016-08-05 11:19:40 +02:00
Macintoshplus
2f9a1e9d78 Update Dockerfile 2016-06-06 09:55:07 +02:00
Macintoshplus
086c448b30 Update to AMQP 1.7.0 Ext 2016-05-09 11:37:09 +02:00
Macintoshplus
737886f4a7 Update Dockerfile
remove memory_limit for cli
2016-03-30 10:35:03 +02:00
Macintoshplus
8c335d44c0 fix 2016-02-14 14:55:08 +01:00
Macintoshplus
eb7b6816e6 fix 2016-02-14 14:52:16 +01:00
Macintoshplus
0cf27d8d7e fix 2016-02-14 11:59:37 +01:00
Macintoshplus
364acb0bf6 fix 2016-02-14 11:49:21 +01:00
Macintoshplus
c1fb91110c fix 2016-02-14 11:44:17 +01:00
Macintoshplus
2689a565ba fix 2016-02-14 11:37:27 +01:00
Macintoshplus
fd110b1622 add php 7 branch 2016-02-14 10:57:13 +01:00
7 changed files with 112 additions and 61 deletions

View File

@@ -1,52 +1,21 @@
##
# 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 apt-get update && apt-get -y upgrade
# Common packages
RUN apt-get -y install curl wget locales nano git subversion sudo php5-dev librabbitmq-dev
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
# 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 php5-xdebug php-apc php5-apcu php5-ldap php5-gmp php5-intl php5-redis
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 install pecl/amqp-1.7.0alpha2
RUN echo "extension=amqp.so" > /etc/php5/mods-available/amqp.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 pear channel-discover pear.phpmd.org && pear channel-discover pear.pdepend.org && pear channel-discover pear.phpdoc.org && pear channel-discover components.ez.no
RUN pear install PHP_CodeSniffer && pear install --alldeps phpmd/PHP_PMD
RUN git clone https://github.com/lapistano/Symfony2-coding-standard.git /usr/share/php/PHP/CodeSniffer/Standards/Symfony2
RUN useradd -s /bin/bash --home /src --no-create-home phpuser
COPY bin/fixright /
RUN chmod +x /fixright
VOLUME /src
VOLUME /sources
WORKDIR /src
WORKDIR /sources

View File

@@ -1,22 +1,35 @@
# php56
Docker Image With PHP56 and many tools !
# php72
Docker Image With PHP 7.2 and many tools !
Dev tools :
## Extensions
* GIT
* SVN
* Curl
* Wget
* Nano
* php7.2-dev
* php7.2-cli
* php7.2-bcmath
* php7.2-curl
* php7.2-gd
* php7.2-mbstring
* php7.2-mysql
* php7.2-sqlite3
* php7.2-xmlrpc
* php7.2-xsl
* php7.2-ldap
* php7.2-gmp
* php7.2-intl
* php-redis
* php7.2-zip
* php7.2-soap
* php7.2-xml
* php7.2-common
* php7.2-json
* php7.2-opcache
* php7.2-readline
* php7.2-xdebug
* php7.2-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-php56), run RabbitMQ worker, run tests and make PHPCS and PHPMD repport.
php7.2-apcu

View File

@@ -1,10 +1,10 @@
#!/bin/bash
if [ -d "/src" ]
if [ -d "/sources" ]
then
USERID=$(stat -c "%u" /src)
GROUPID=$(stat -c "%g" /src)
USERID=$(stat -c "%u" /sources)
GROUPID=$(stat -c "%g" /sources)
groupmod -g $GROUPID phpuser
usermod -u $USERID -g $GROUPID phpuser

8
build_image.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
DIR=$(dirname $0)
cd $DIR
docker build -t php72 --network host .

BIN
certs/sury.gpg Normal file

Binary file not shown.

61
install.sh Normal file
View File

@@ -0,0 +1,61 @@
#!/bin/sh -ex
##
# Jb Nahan PHP 7.2 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.2-dev php7.2-cli php7.2-bcmath php7.2-curl php-pear php7.2-gd php7.2-mbstring php7.2-mysql php7.2-sqlite3 php7.2-xmlrpc php7.2-xsl php7.2-ldap php7.2-gmp php7.2-intl php7.2-zip php7.2-soap php7.2-xml php7.2-common php7.2-json php7.2-opcache php7.2-readline blackfire-agent blackfire-php
# Disabled ext from repos : php7.2-imagick php7.2-xdebug php7.2-apcu
# Disable dependencies : libmagickwand-6.q16-dev
# Disabled php-redis
sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php/7.2/cli/php.ini
sed -i 's/\memory_limit\ \=\ 128M/memory_limit\ \=\ -1/g' /etc/php/7.2/cli/php.ini
sed -i 's/\display_errors\ \=\ Off/display_errors\ \=\ On/g' /etc/php/7.2/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.2/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
pecl install sqlsrv-5.6.1
pecl install pdo_sqlsrv-5.6.1
echo "extension=sqlsrv" > /etc/php/7.2/mods-available/sqlsrv.ini
echo "extension=pdo_sqlsrv" > /etc/php/7.2/mods-available/pdo_sqlsrv.ini
#PEAR
pear upgrade
pear install pecl/amqp
echo "extension=amqp" > /etc/php/7.2/mods-available/amqp.ini
pear install pecl/redis
echo "extension=redis" > /etc/php/7.2/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.2/mods-available/imagick.ini
#git clone git://github.com/xdebug/xdebug.git
#cd xdebug
#git co 2.6.0beta1
#/usr/bin/phpize7.2 && ./configure --enable-xdebug && make && make install
pear install pecl/xdebug
echo "zend_extension=xdebug" > /etc/php/7.2/mods-available/xdebug.ini
phpenmod -v 7.2 -s cli amqp sqlsrv pdo_sqlsrv redis xdebug imagick
useradd -s /bin/bash --home /sources --no-create-home phpuser
apt-get remove -y libgcc-8-dev libmagickwand-dev libmagickcore-dev && apt-get autoremove -y