123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- FROM debian:jessie
- # Install dependencies. We start with the basic ones require to build protoc
- # and the C++ build
- RUN apt-get update && apt-get install -y \
- autoconf \
- autotools-dev \
- build-essential \
- bzip2 \
- ccache \
- curl \
- gcc \
- git \
- libc6 \
- libc6-dbg \
- libc6-dev \
- libgtest-dev \
- libtool \
- make \
- parallel \
- time \
- wget \
- re2c \
- sqlite3 \
- libsqlite3-dev \
- && apt-get clean
- # Install php dependencies
- RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
- php5 \
- libcurl4-openssl-dev \
- libgmp-dev \
- libgmp3-dev \
- libssl-dev \
- libxml2-dev \
- unzip \
- zlib1g-dev \
- pkg-config \
- && apt-get clean
- # Install other dependencies
- RUN ln -sf /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
- RUN wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gz -O /var/local/bison-2.6.4.tar.gz
- RUN cd /var/local \
- && tar -zxvf bison-2.6.4.tar.gz \
- && cd /var/local/bison-2.6.4 \
- && ./configure \
- && make \
- && make install
- # Install composer
- RUN curl -sS https://getcomposer.org/installer | php
- RUN mv composer.phar /usr/local/bin/composer
- # Download php source code
- RUN git clone https://github.com/php/php-src
- # php 5.6
- RUN cd php-src \
- && git checkout PHP-5.6.39 \
- && ./buildconf --force
- RUN cd php-src \
- && ./configure \
- --enable-bcmath \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-5.6 \
- && make \
- && make install \
- && make clean
- RUN wget -O phpunit https://phar.phpunit.de/phpunit-5.phar \
- && chmod +x phpunit \
- && mv phpunit /usr/local/php-5.6/bin
- # php 7.0
- RUN cd php-src \
- && git checkout PHP-7.0.33 \
- && ./buildconf --force
- RUN cd php-src \
- && ./configure \
- --enable-bcmath \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.0 \
- && make \
- && make install \
- && make clean
- RUN cd php-src \
- && ./configure \
- --enable-maintainer-zts \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.0-zts \
- && make \
- && make install \
- && make clean
- RUN wget -O phpunit https://phar.phpunit.de/phpunit-6.phar \
- && chmod +x phpunit \
- && cp phpunit /usr/local/php-7.0/bin \
- && mv phpunit /usr/local/php-7.0-zts/bin
- # php 7.1
- RUN cd php-src \
- && git checkout PHP-7.1.25 \
- && ./buildconf --force
- RUN cd php-src \
- && ./configure \
- --enable-bcmath \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.1 \
- && make \
- && make install \
- && make clean
- RUN cd php-src \
- && ./configure \
- --enable-maintainer-zts \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.1-zts \
- && make \
- && make install \
- && make clean
- RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
- && chmod +x phpunit \
- && cp phpunit /usr/local/php-7.1/bin \
- && mv phpunit /usr/local/php-7.1-zts/bin
- # php 7.2
- RUN cd php-src \
- && git checkout PHP-7.2.13 \
- && ./buildconf --force
- RUN cd php-src \
- && ./configure \
- --enable-bcmath \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.2 \
- && make \
- && make install \
- && make clean
- RUN cd php-src \
- && ./configure \
- --enable-maintainer-zts \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.2-zts \
- && make \
- && make install \
- && make clean
- RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
- && chmod +x phpunit \
- && cp phpunit /usr/local/php-7.2/bin \
- && mv phpunit /usr/local/php-7.2-zts/bin
- # php 7.3
- RUN cd php-src \
- && git checkout PHP-7.3.0 \
- && ./buildconf --force
- RUN cd php-src \
- && ./configure \
- --enable-bcmath \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.3 \
- && make \
- && make install \
- && make clean
- RUN cd php-src \
- && ./configure \
- --enable-maintainer-zts \
- --enable-mbstring \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.3-zts \
- && make \
- && make install \
- && make clean
- RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
- && chmod +x phpunit \
- && cp phpunit /usr/local/php-7.3/bin \
- && mv phpunit /usr/local/php-7.3-zts/bin
- # php 7.4
- RUN wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz -O /var/local/bison-3.0.1.tar.gz
- RUN cd /var/local \
- && tar -zxvf bison-3.0.1.tar.gz \
- && cd /var/local/bison-3.0.1 \
- && ./configure \
- && make \
- && make install
- RUN wget https://github.com/php/php-src/archive/php-7.4.0.tar.gz -O /var/local/php-7.4.0.tar.gz
- RUN cd /var/local \
- && tar -zxvf php-7.4.0.tar.gz
- RUN cd /var/local/php-src-php-7.4.0 \
- && ./buildconf --force \
- && ./configure \
- --enable-bcmath \
- --enable-mbstring \
- --disable-mbregex \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.4 \
- && make \
- && make install \
- && make clean
- RUN cd /var/local/php-src-php-7.4.0 \
- && ./buildconf --force \
- && ./configure \
- --enable-maintainer-zts \
- --enable-mbstring \
- --disable-mbregex \
- --with-gmp \
- --with-openssl \
- --with-zlib \
- --prefix=/usr/local/php-7.4-zts \
- && make \
- && make install \
- && make clean
- RUN wget -O phpunit https://phar.phpunit.de/phpunit-8.phar \
- && chmod +x phpunit \
- && cp phpunit /usr/local/php-7.4/bin \
- && mv phpunit /usr/local/php-7.4-zts/bin
- # Install php dependencies
- RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
- valgrind \
- && apt-get clean
|