Upgrade PHP7 docker image to use Debian 9 (#27537)

* Upgrade PHP7 docker image to use Debian 9

* update
pull/27426/head
Esun Kim 3 years ago committed by GitHub
parent d811d178ee
commit 11d2f86e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/tools/dockerfile/interoptest/grpc_interop_php7/Dockerfile.template
  2. 18
      templates/tools/dockerfile/php7_deps.include
  3. 2
      templates/tools/dockerfile/test/php7_debian9_x64/Dockerfile.template
  4. 20
      tools/dockerfile/interoptest/grpc_interop_php7/Dockerfile
  5. 20
      tools/dockerfile/test/php7_debian9_x64/Dockerfile
  6. 2
      tools/run_tests/run_tests.py

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
<%include file="../../debian_8_header.include"/>
<%include file="../../debian_9_header.include"/>
<%include file="../../php7_deps.include"/>
<%include file="../../run_tests_addons.include"/>

@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y ${'\\'}
ccache ${'\\'}
curl ${'\\'}
git ${'\\'}
libbison-dev ${'\\'}
libcurl4-openssl-dev ${'\\'}
libgmp-dev ${'\\'}
libgmp3-dev ${'\\'}
@ -20,26 +21,17 @@ RUN apt-get update && apt-get install -y ${'\\'}
time ${'\\'}
unzip ${'\\'}
wget ${'\\'}
zip && 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-3.4.2.tar.gz -O /var/local/bison-3.4.2.tar.gz
RUN cd /var/local ${'\\'}
&& tar -zxvf bison-3.4.2.tar.gz ${'\\'}
&& cd /var/local/bison-3.4.2 ${'\\'}
&& ./configure ${'\\'}
&& make ${'\\'}
&& make install
zip ${'\\'}
zlib1g-dev && apt-get clean
# Compile PHP7 from source
RUN git clone https://github.com/php/php-src /var/local/git/php-src
RUN cd /var/local/git/php-src ${'\\'}
&& git checkout PHP-7.2.22 ${'\\'}
&& git checkout PHP-7.2.34 ${'\\'}
&& ./buildconf --force ${'\\'}
&& ./configure ${'\\'}
--with-gmp ${'\\'}
--with-openssl ${'\\'}
--with-zlib ${'\\'}
&& make ${'\\'}
&& make -j$(nproc) ${'\\'}
&& make install

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
<%include file="../../debian_8_header.include"/>
<%include file="../../debian_9_header.include"/>
<%include file="../../php7_deps.include"/>
<%include file="../../python_deps.include"/>

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM debian:8
FROM debian:9
#=================
@ -26,6 +26,7 @@ RUN apt-get update && apt-get install -y \
ccache \
curl \
git \
libbison-dev \
libcurl4-openssl-dev \
libgmp-dev \
libgmp3-dev \
@ -37,28 +38,19 @@ RUN apt-get update && apt-get install -y \
time \
unzip \
wget \
zip && 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-3.4.2.tar.gz -O /var/local/bison-3.4.2.tar.gz
RUN cd /var/local \
&& tar -zxvf bison-3.4.2.tar.gz \
&& cd /var/local/bison-3.4.2 \
&& ./configure \
&& make \
&& make install
zip \
zlib1g-dev && apt-get clean
# Compile PHP7 from source
RUN git clone https://github.com/php/php-src /var/local/git/php-src
RUN cd /var/local/git/php-src \
&& git checkout PHP-7.2.22 \
&& git checkout PHP-7.2.34 \
&& ./buildconf --force \
&& ./configure \
--with-gmp \
--with-openssl \
--with-zlib \
&& make \
&& make -j$(nproc) \
&& make install

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM debian:8
FROM debian:9
#=================
@ -26,6 +26,7 @@ RUN apt-get update && apt-get install -y \
ccache \
curl \
git \
libbison-dev \
libcurl4-openssl-dev \
libgmp-dev \
libgmp3-dev \
@ -37,28 +38,19 @@ RUN apt-get update && apt-get install -y \
time \
unzip \
wget \
zip && 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-3.4.2.tar.gz -O /var/local/bison-3.4.2.tar.gz
RUN cd /var/local \
&& tar -zxvf bison-3.4.2.tar.gz \
&& cd /var/local/bison-3.4.2 \
&& ./configure \
&& make \
&& make install
zip \
zlib1g-dev && apt-get clean
# Compile PHP7 from source
RUN git clone https://github.com/php/php-src /var/local/git/php-src
RUN cd /var/local/git/php-src \
&& git checkout PHP-7.2.22 \
&& git checkout PHP-7.2.34 \
&& ./buildconf --force \
&& ./configure \
--with-gmp \
--with-openssl \
--with-zlib \
&& make \
&& make -j$(nproc) \
&& make install
#====================

@ -590,7 +590,7 @@ class Php7Language(object):
return 'Makefile'
def dockerfile_dir(self):
return 'tools/dockerfile/test/php7_jessie_%s' % _docker_arch_suffix(
return 'tools/dockerfile/test/php7_debian9_%s' % _docker_arch_suffix(
self.args.arch)
def __str__(self):

Loading…
Cancel
Save