103 Commits

Author SHA1 Message Date
macintoshplus
36c93b4421 change 2019-12-02 22:06:09 +01:00
macintoshplus
a2ef1c9061 fix build 2019-12-02 21:40:45 +01:00
Jean-Baptiste Nahan
48b2725b85 Merge pull request #4 from crobix/patch-4
Update install.sh
2019-12-02 19:24:42 +01:00
crobix
3175f50878 Update install.sh
update to debian buster
2019-12-02 16:52:59 +01:00
Jean-Baptiste Nahan
27e912cc36 bmp version Redis SQLSRV and xdebug 2019-11-20 13:46:44 +01:00
macintoshplus
9f87921367 fix imagick build 2019-03-20 16:50:08 +01:00
macintoshplus
d5a93aa197 add sh options 2019-03-20 15:16:05 +01:00
macintoshplus
7625c0fe08 fix 2019-03-20 15:07:16 +01:00
macintoshplus
87a48e67f2 update build 2019-03-20 14:42:56 +01:00
Jean-Baptiste Nahan
95a913adf2 SQL SRV driver and PDO bump to 5.6.0 2019-03-18 17:51:34 +01:00
Jean-Baptiste Nahan
7007fb688b Change sury key 2019-03-18 14:27:52 +01:00
Jean-Baptiste Nahan
5d0752a106 update build 2019-03-18 12:13:53 +01:00
Jean-Baptiste Nahan
cec8a53db7 bump amqp version 2019-03-18 09:26:02 +01:00
Jean-Baptiste Nahan
7374c8b343 Bump xdebug to 2.7.0 2019-03-15 07:41:33 +01:00
Jean-Baptiste Nahan
695087a680 Enable blackfire 2019-03-15 07:40:27 +01:00
macintoshplus
ec10c5af00 change user creation and add args 2019-03-13 08:43:43 +01:00
Macintoshplus
34945d5900 update builded ext 2018-11-13 17:49:32 +01:00
Macintoshplus
f38d429d22 remove blackfire 2018-11-13 16:54:19 +01:00
Macintoshplus
402053c3ea update readme 2018-11-13 11:56:15 +01:00
Macintoshplus
bd3b3f0106 update for PHP 7.3 2018-11-13 11:54:42 +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
6 changed files with 112 additions and 64 deletions

View File

@@ -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=1008
ARG gid=1008
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

View File

@@ -1,23 +1,35 @@
# php56
Docker Image With PHP56 and many tools !
# php73
Docker Image With PHP 7.3 and many tools !
Dev tools :
## Extensions
* GIT
* SVN
* Curl
* Wget
* Nano
* openJdk
* php7.3-dev
* php7.3-cli
* php7.3-bcmath
* php7.3-curl
* php7.3-gd
* php7.3-mbstring
* php7.3-mysql
* php7.3-sqlite3
* php7.3-xmlrpc
* php7.3-xsl
* php7.3-ldap
* php7.3-gmp
* php7.3-intl
* php-redis
* php7.3-zip
* php7.3-soap
* php7.3-xml
* php7.3-common
* php7.3-json
* php7.3-opcache
* php7.3-readline
* php7.3-xdebug
* php7.3-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.3-apcu

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.

64
install.sh Normal file
View File

@@ -0,0 +1,64 @@
#!/bin/sh -ex
##
# Jb Nahan PHP 7.3 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.3-dev php7.3-cli php7.3-bcmath php7.3-curl php-pear php7.3-gd php7.3-mbstring php7.3-mysql php7.3-sqlite3 php7.3-xmlrpc php7.3-xsl php7.3-ldap php7.3-gmp php7.3-intl php7.3-zip php7.3-soap php7.3-xml php7.3-common php7.3-json php7.3-opcache php7.3-readline
# Disabled ext from repos : php7.3-imagick php7.3-xdebug php7.3-apcu
# Disable dependencies : libmagickwand-6.q16-dev
# Disabled php-redis
sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php/7.3/cli/php.ini
sed -i 's/\memory_limit\ \=\ 128M/memory_limit\ \=\ -1/g' /etc/php/7.3/cli/php.ini
sed -i 's/\display_errors\ \=\ Off/display_errors\ \=\ On/g' /etc/php/7.3/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.3/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.3/mods-available/sqlsrv.ini
echo "extension=pdo_sqlsrv" > /etc/php/7.3/mods-available/pdo_sqlsrv.ini
#PEAR
pear upgrade
pear install pecl/amqp
echo "extension=amqp" > /etc/php/7.3/mods-available/amqp.ini
pear install pecl/redis-5.1.1
echo "extension=redis" > /etc/php/7.3/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.3/mods-available/imagick.ini
pear install pecl/xdebug-2.8.0
echo "zend_extension=xdebug" > /etc/php/7.3/mods-available/xdebug.ini
phpenmod -v 7.3 -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.3-dev libmagickwand-dev libmagickcore-dev && apt-get autoremove -y