20 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan
9dc1179eb9 update 2019-03-20 15:17:59 +01:00
Macintoshplus
aabc24378e change wd 2017-09-19 11:46:58 +02:00
Macintoshplus
53165514dd update for php 56 2017-08-08 14:41:43 +02:00
Macintoshplus
2157bdefe0 add java 2017-08-08 14:21:26 +02:00
Macintoshplus
f23ee67f4f Delete en_lang.php 2017-07-19 22:07:37 +02:00
Macintoshplus
2a750c3bfa Create en_lang.php 2017-07-19 22:01:05 +02:00
Macintoshplus
0f3caf4e8e Add SQLite 2017-01-31 12:18:00 +01:00
Macintoshplus
edc26bb1e7 Update Dockerfile 2016-06-22 16:23:32 +02:00
Macintoshplus
f9a2fd9044 upgade xdebug 2016-06-22 15:48:36 +02:00
Macintoshplus
bae14a82e5 Add upgrade pear and xdebug 2016-06-06 09:54:22 +02:00
Macintoshplus
2816941770 Update Dockerfile
Remove memory limit for cli
2016-03-30 10:33:59 +02:00
Macintoshplus
94eb35f045 Switch to AMQP 1.7.0Alpha2
The version 1.6.0 and 1.6.1 return Segmentation Fault. Use the latest version for work normally.
2016-02-15 11:01:05 +01:00
Macintoshplus
a51d1a2983 fix 2016-02-14 14:57:03 +01:00
Macintoshplus
403fea55ca Add AMQP INI 2015-09-23 09:00:01 +02:00
Macintoshplus
f578cfa282 Add Apcu and amqp ext 2015-09-23 08:43:47 +02:00
Macintoshplus
190366c7cc fix user add 2015-08-07 09:49:31 +02:00
Macintoshplus
dd9b5397a8 add fixright 2015-08-07 09:44:23 +02:00
Macintoshplus
46ae771d8f Update Dockerfile 2015-08-07 09:08:14 +02:00
Macintoshplus
f7f43ffd1a Update README.md 2015-08-07 07:39:28 +02:00
Macintoshplus
62886c0e20 Update Dockerfile 2015-08-07 07:18:02 +02:00
3 changed files with 68 additions and 20 deletions

View File

@@ -2,44 +2,59 @@
# Jb Nahan PHP 5.6 container
##
FROM debian:jessie
MAINTAINER Jean-Baptiste Nahan <jean-baptiste@nahan.fr>
FROM debian:jessie
MAINTAINER Jean-Baptiste Nahan <jean-baptiste@nahan.fr>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade
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
RUN apt-get -y install curl wget locales nano git subversion
ENV CA_CERTIFICATES_JAVA_VERSION 20161107~bpo8+1
RUN echo "Europe/Paris" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
RUN export LANGUAGE=en_US.UTF-8 && \
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"
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
RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
RUN ln -s /usr/bin/java /bin/java
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
# 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-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 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
#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 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 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
VOLUME /src
VOLUME /sources
WORKDIR /src
WORKDIR /sources

View File

@@ -1,2 +1,23 @@
# php56
Docker Image With PHP56 and many tools !
Dev tools :
* GIT
* SVN
* Curl
* Wget
* Nano
* openJdk
Executable tools :
* 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.

12
bin/fixright Executable file
View File

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