Dockerfile.p4php7.archive.ubuntu16 #1

  • //
  • guest/
  • perforce_software/
  • p4php/
  • main/
  • sanity_test/
  • Dockerfile.p4php7.archive.ubuntu16
  • View
  • Commits
  • Open Download .zip Download (732 B)
FROM p4php7.base.ubuntu16

RUN echo "Beginning test of p4php7.archive inside an Ubuntu 16.04 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/7.0/cli/php.ini
RUN /usr/bin/php /tmp/sanity.php
# Change User Description Committed
#1 24779 Robert Cowham P4PHP 2016.2.1490102