FROM p4php7.base.centos7 RUN echo "Beginning test of p4php7.archive inside a CentOS 7 Docker container" ADD p4d /usr/local/bin/p4d RUN chmod 777 /usr/local/bin/p4d ADD p4api.tgz /tmp/ ADD p4php-php7.tgz /tmp/ ADD sanity.php /tmp/sanity.php # Display test environment versions RUN p4d -V RUN ls /tmp | grep p4 RUN /usr/bin/php -v RUN cd /tmp/p4php-* && phpize RUN cd /tmp/p4php-* && ./configure --with-perforce=$(find /tmp -name p4api-* -type d) RUN cd /tmp/p4php-* && make RUN cd /tmp/p4php-* && yes n | make test RUN cd /tmp/p4php-* && if [ -e tests/*.log ]; then cat tests/*.log; false; fi RUN cd /tmp/p4php-* && make install RUN echo 'extension=perforce.so' >> /etc/php.ini RUN /usr/bin/php /tmp/sanity.php