73 Commits

Author SHA1 Message Date
macintoshplus
0ae6827029 attempt to update 2019-12-02 22:04:29 +01:00
Jean-Baptiste Nahan
e0ccbff9d9 remove xdebug 2.5.5 2019-03-21 17:19:56 +01:00
Jean-Baptiste Nahan
ac80363b28 xdebug 2.5.5 2019-03-21 17:19:05 +01:00
Jean-Baptiste Nahan
604dfc1ca6 remove libgcc 7 2019-03-20 17:05:54 +01:00
macintoshplus
3224015fdf add sh options + use apt-get 2019-03-20 15:24:23 +01:00
Jean-Baptiste Nahan
975aa48835 Change sury key 2019-03-18 14:28:27 +01:00
Jean-Baptiste Nahan
b3d31d6a1a add backfire and bump amqp 1.94 2019-03-15 07:50:10 +01:00
Macintoshplus
ab26cefe29 upgrade amqp 1.9.3 2017-11-21 09:02:08 +01:00
Macintoshplus
c4102126ae ajout de l'extension bc-math 2017-10-17 10:51:20 +02:00
Macintoshplus
5de5cb5d33 rewrite install process 2017-09-27 21:46:30 +02:00
Macintoshplus
f506d6dc60 Fix Error for xdebug 2017-09-27 14:53:07 +02:00
Macintoshplus
9086ba965d fix xdebug err 2017-09-19 17:09:35 +02:00
Macintoshplus
06d9a7fe4a change wd 2017-09-19 12:10:19 +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 58 additions and 46 deletions

View File

@@ -1,52 +1,21 @@
##
# Jb Nahan PHP 5.6 container
# Jb Nahan PHP 7.1 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,4 +1,4 @@
# php56
# php71
Docker Image With PHP56 and many tools !
Dev tools :
@@ -18,5 +18,3 @@ 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.

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

BIN
certs/sury.gpg Normal file

Binary file not shown.

45
install.sh Normal file
View File

@@ -0,0 +1,45 @@
#!/bin/sh -ex
##
# Jb Nahan PHP 7.1 container
##
export DEBIAN_FRONTEND=noninteractive
wget -q -O - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/sury-php.list
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.1-dev php7.1-cli php7.1-bcmath php7.1-curl php-pear php7.1-imagick php7.1-gd \
php7.1-mcrypt php7.1-mbstring php7.1-mysql php7.1-sqlite3 php7.1-xmlrpc php7.1-xsl php7.1-apcu php7.1-ldap php7.1-gmp php7.1-intl php-redis \
php7.1-zip php7.1-soap php7.1-xml php7.1-common blackfire-agent blackfire-php
sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php/7.1/cli/php.ini
sed -i 's/\memory_limit\ \=\ 128M/memory_limit\ \=\ -1/g' /etc/php/7.1/cli/php.ini
sed -i 's/\display_errors\ \=\ Off/display_errors\ \=\ On/g' /etc/php/7.1/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.1/cli/php.ini
pecl channel-update pecl.php.net
pecl install sqlsrv
pecl install pdo_sqlsrv
echo "extension=sqlsrv.so" > /etc/php/7.1/mods-available/sqlsrv.ini
echo "extension=pdo_sqlsrv.so" > /etc/php/7.1/mods-available/pdo_sqlsrv.ini
phpenmod sqlsrv pdo_sqlsrv
#PEAR
pear upgrade && pear install pecl/amqp-1.9.4
echo "extension=amqp.so" > /etc/php/7.1/mods-available/amqp.ini
phpenmod amqp
pear install pecl/xdebug
echo "zend_extension=/usr/lib/php/20160303/xdebug.so" > /etc/php/7.1/mods-available/xdebug.ini
phpenmod xdebug
apt-get remove -y libgcc-8-dev php7.1-dev
apt-get autoremove -y
apt-get autoclean
apt-get clean
useradd -s /bin/bash --home /sources --no-create-home phpuser