1FROM i386/debian:jessie 2 3# Install dependencies. We start with the basic ones require to build protoc 4# and the C++ build 5RUN apt-get update && apt-get install -y \ 6 autoconf \ 7 autotools-dev \ 8 build-essential \ 9 bzip2 \ 10 ccache \ 11 curl \ 12 gcc \ 13 git \ 14 libc6 \ 15 libc6-dbg \ 16 libc6-dev \ 17 libgtest-dev \ 18 libtool \ 19 make \ 20 parallel \ 21 time \ 22 wget \ 23 re2c \ 24 sqlite3 \ 25 libsqlite3-dev \ 26 && apt-get clean 27 28# Install php dependencies 29RUN apt-get clean && apt-get update && apt-get install -y --force-yes \ 30 bison \ 31 php5 \ 32 libcurl4-openssl-dev \ 33 libssl-dev \ 34 libxml2-dev \ 35 unzip \ 36 zlib1g-dev \ 37 pkg-config \ 38 && apt-get clean 39 40# Install other dependencies 41RUN wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gz -O /var/local/bison-2.6.4.tar.gz 42RUN cd /var/local \ 43 && tar -zxvf bison-2.6.4.tar.gz \ 44 && cd /var/local/bison-2.6.4 \ 45 && ./configure \ 46 && make \ 47 && make install 48 49# Install composer 50RUN curl -sS https://getcomposer.org/installer | php 51RUN mv composer.phar /usr/local/bin/composer 52 53# Download php source code 54RUN git clone https://github.com/php/php-src 55 56# php 5.5 57RUN cd php-src \ 58 && git checkout PHP-5.5.38 \ 59 && ./buildconf --force 60RUN cd php-src \ 61 && ./configure \ 62 --enable-bcmath \ 63 --with-openssl \ 64 --with-zlib \ 65 --prefix=/usr/local/php-5.5 \ 66 && make \ 67 && make install \ 68 && make clean 69RUN cd php-src \ 70 && ./configure \ 71 --enable-maintainer-zts \ 72 --with-openssl \ 73 --with-zlib \ 74 --prefix=/usr/local/php-5.5-zts \ 75 && make \ 76 && make install \ 77 && make clean 78 79RUN wget -O phpunit https://phar.phpunit.de/phpunit-4.phar \ 80 && chmod +x phpunit \ 81 && cp phpunit /usr/local/php-5.5/bin \ 82 && mv phpunit /usr/local/php-5.5-zts/bin 83 84# php 5.6 85RUN cd php-src \ 86 && git checkout PHP-5.6.39 \ 87 && ./buildconf --force 88RUN cd php-src \ 89 && ./configure \ 90 --enable-bcmath \ 91 --with-openssl \ 92 --with-zlib \ 93 --prefix=/usr/local/php-5.6 \ 94 && make \ 95 && make install \ 96 && make clean 97RUN cd php-src \ 98 && ./configure \ 99 --enable-maintainer-zts \ 100 --with-openssl \ 101 --with-zlib \ 102 --prefix=/usr/local/php-5.6-zts \ 103 && make \ 104 && make install \ 105 && make clean 106 107RUN wget -O phpunit https://phar.phpunit.de/phpunit-5.phar \ 108 && chmod +x phpunit \ 109 && cp phpunit /usr/local/php-5.6/bin \ 110 && mv phpunit /usr/local/php-5.6-zts/bin 111 112# php 7.0 113RUN cd php-src \ 114 && git checkout PHP-7.0.33 \ 115 && ./buildconf --force 116RUN cd php-src \ 117 && ./configure \ 118 --enable-bcmath \ 119 --with-openssl \ 120 --with-zlib \ 121 --prefix=/usr/local/php-7.0 \ 122 && make \ 123 && make install \ 124 && make clean 125RUN cd php-src \ 126 && ./configure \ 127 --enable-maintainer-zts \ 128 --with-openssl \ 129 --with-zlib \ 130 --prefix=/usr/local/php-7.0-zts \ 131 && make \ 132 && make install \ 133 && make clean 134 135RUN wget -O phpunit https://phar.phpunit.de/phpunit-6.phar \ 136 && chmod +x phpunit \ 137 && cp phpunit /usr/local/php-7.0/bin \ 138 && mv phpunit /usr/local/php-7.0-zts/bin 139 140# php 7.1 141RUN cd php-src \ 142 && git checkout PHP-7.1.25 \ 143 && ./buildconf --force 144RUN cd php-src \ 145 && ./configure \ 146 --enable-bcmath \ 147 --with-openssl \ 148 --with-zlib \ 149 --prefix=/usr/local/php-7.1 \ 150 && make \ 151 && make install \ 152 && make clean 153RUN cd php-src \ 154 && ./configure \ 155 --enable-maintainer-zts \ 156 --with-openssl \ 157 --with-zlib \ 158 --prefix=/usr/local/php-7.1-zts \ 159 && make \ 160 && make install \ 161 && make clean 162 163RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \ 164 && chmod +x phpunit \ 165 && cp phpunit /usr/local/php-7.1/bin \ 166 && mv phpunit /usr/local/php-7.1-zts/bin 167 168# php 7.2 169RUN cd php-src \ 170 && git checkout PHP-7.2.13 \ 171 && ./buildconf --force 172RUN cd php-src \ 173 && ./configure \ 174 --enable-bcmath \ 175 --with-openssl \ 176 --with-zlib \ 177 --prefix=/usr/local/php-7.2 \ 178 && make \ 179 && make install \ 180 && make clean 181RUN cd php-src \ 182 && ./configure \ 183 --enable-maintainer-zts \ 184 --with-openssl \ 185 --with-zlib \ 186 --prefix=/usr/local/php-7.2-zts \ 187 && make \ 188 && make install \ 189 && make clean 190 191RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \ 192 && chmod +x phpunit \ 193 && cp phpunit /usr/local/php-7.2/bin \ 194 && mv phpunit /usr/local/php-7.2-zts/bin 195 196# php 7.3 197RUN cd php-src \ 198 && git checkout PHP-7.3.0 \ 199 && ./buildconf --force 200RUN cd php-src \ 201 && ./configure \ 202 --enable-bcmath \ 203 --with-openssl \ 204 --with-zlib \ 205 --prefix=/usr/local/php-7.3 \ 206 && make \ 207 && make install \ 208 && make clean 209RUN cd php-src \ 210 && ./configure \ 211 --enable-maintainer-zts \ 212 --with-openssl \ 213 --with-zlib \ 214 --prefix=/usr/local/php-7.3-zts \ 215 && make \ 216 && make install \ 217 && make clean 218 219RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \ 220 && chmod +x phpunit \ 221 && cp phpunit /usr/local/php-7.3/bin \ 222 && mv phpunit /usr/local/php-7.3-zts/bin 223 224# php 7.4 225RUN wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz -O /var/local/bison-3.0.1.tar.gz 226RUN cd /var/local \ 227 && tar -zxvf bison-3.0.1.tar.gz \ 228 && cd /var/local/bison-3.0.1 \ 229 && ./configure \ 230 && make \ 231 && make install 232 233RUN wget https://github.com/php/php-src/archive/php-7.4.0.tar.gz -O /var/local/php-7.4.0.tar.gz 234 235RUN cd /var/local \ 236 && tar -zxvf php-7.4.0.tar.gz 237 238RUN cd /var/local/php-src-php-7.4.0 \ 239 && ./buildconf --force \ 240 && ./configure \ 241 --enable-bcmath \ 242 --with-openssl \ 243 --with-zlib \ 244 --prefix=/usr/local/php-7.4 \ 245 && make \ 246 && make install \ 247 && make clean 248RUN cd /var/local/php-src-php-7.4.0 \ 249 && ./buildconf --force \ 250 && ./configure \ 251 --enable-maintainer-zts \ 252 --with-openssl \ 253 --with-zlib \ 254 --prefix=/usr/local/php-7.4-zts \ 255 && make \ 256 && make install \ 257 && make clean 258 259RUN wget -O phpunit https://phar.phpunit.de/phpunit-8.phar \ 260 && chmod +x phpunit \ 261 && cp phpunit /usr/local/php-7.4/bin \ 262 && mv phpunit /usr/local/php-7.4-zts/bin 263 264# Install php dependencies 265RUN apt-get clean && apt-get update && apt-get install -y --force-yes \ 266 valgrind \ 267 && apt-get clean 268