FROM centos:centos7
ENV LANG C
# Install all the upstream packages required for testing any P4PHP artifact
# Repetition is harmless, makes clear what each artifact needs
# Basic UNIX tools needed when debugging this test
RUN yum -y install bash sudo which wget tar --nogpgcheck
# Compilers libraries and header files required for building p4hp.archive
RUN yum -y install make gcc-c++ --nogpgcheck
# PHP7 isn't in the default package repo for CentOS 7: add a 3rd-party!
RUN yum -y install epel-release
RUN rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
RUN yum -y install php70u-cli php70u-devel