Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
ef210164
Unverified
Commit
ef210164
authored
5 years ago
by
Paul Yang
Committed by
GitHub
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add php 7.4 to docker image (#6971)
* Add php 7.4 to docker image * Use https links
parent
e6c5a3b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
1 deletion
+89
-1
Dockerfile
kokoro/linux/dockerfile/test/php/Dockerfile
+45
-0
Dockerfile
kokoro/linux/dockerfile/test/php_32bit/Dockerfile
+44
-1
No files found.
kokoro/linux/dockerfile/test/php/Dockerfile
View file @
ef210164
...
...
@@ -20,6 +20,9 @@ RUN apt-get update && apt-get install -y \
parallel
\
time
\
wget
\
re2c
\
sqlite3
\
libsqlite3-dev
\
&&
apt-get clean
# Install php dependencies
...
...
@@ -232,6 +235,48 @@ RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \
&&
cp
phpunit /usr/local/php-7.3/bin
\
&&
mv
phpunit /usr/local/php-7.3-zts/bin
# php 7.4
RUN
wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz
-O
/var/local/bison-3.0.1.tar.gz
RUN
cd
/var/local
\
&&
tar
-zxvf
bison-3.0.1.tar.gz
\
&&
cd
/var/local/bison-3.0.1
\
&&
./configure
\
&&
make
\
&&
make
install
RUN
wget https://github.com/php/php-src/archive/php-7.4.0.tar.gz
-O
/var/local/php-7.4.0.tar.gz
RUN
cd
/var/local
\
&&
tar
-zxvf
php-7.4.0.tar.gz
RUN
cd
/var/local/php-src-php-7.4.0
\
&&
./buildconf
--force
\
&&
./configure
\
--enable-bcmath
\
--with-gmp
\
--with-openssl
\
--with-zlib
\
--prefix
=
/usr/local/php-7.4
\
&&
make
\
&&
make
install
\
&&
make clean
RUN
cd
/var/local/php-src-php-7.4.0
\
&&
./buildconf
--force
\
&&
./configure
\
--enable-maintainer-zts
\
--with-gmp
\
--with-openssl
\
--with-zlib
\
--prefix
=
/usr/local/php-7.4-zts
\
&&
make
\
&&
make
install
\
&&
make clean
RUN
wget
-O
phpunit https://phar.phpunit.de/phpunit-8.phar
\
&&
chmod
+x phpunit
\
&&
cp
phpunit /usr/local/php-7.4/bin
\
&&
mv
phpunit /usr/local/php-7.4-zts/bin
# Install php dependencies
RUN
apt-get clean
&&
apt-get update
&&
apt-get
install
-y
--force-yes
\
valgrind
\
...
...
This diff is collapsed.
Click to expand it.
kokoro/linux/dockerfile/test/php_32bit/Dockerfile
View file @
ef210164
FROM
32bit
/debian:jessie
FROM
i386
/debian:jessie
# Install dependencies. We start with the basic ones require to build protoc
# and the C++ build
...
...
@@ -20,6 +20,9 @@ RUN apt-get update && apt-get install -y \
parallel
\
time
\
wget
\
re2c
\
sqlite3
\
libsqlite3-dev
\
&&
apt-get clean
# Install php dependencies
...
...
@@ -218,6 +221,46 @@ RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.phar \
&&
cp
phpunit /usr/local/php-7.3/bin
\
&&
mv
phpunit /usr/local/php-7.3-zts/bin
# php 7.4
RUN
wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz
-O
/var/local/bison-3.0.1.tar.gz
RUN
cd
/var/local
\
&&
tar
-zxvf
bison-3.0.1.tar.gz
\
&&
cd
/var/local/bison-3.0.1
\
&&
./configure
\
&&
make
\
&&
make
install
RUN
wget https://github.com/php/php-src/archive/php-7.4.0.tar.gz
-O
/var/local/php-7.4.0.tar.gz
RUN
cd
/var/local
\
&&
tar
-zxvf
php-7.4.0.tar.gz
RUN
cd
/var/local/php-src-php-7.4.0
\
&&
./buildconf
--force
\
&&
./configure
\
--enable-bcmath
\
--with-openssl
\
--with-zlib
\
--prefix
=
/usr/local/php-7.4
\
&&
make
\
&&
make
install
\
&&
make clean
RUN
cd
/var/local/php-src-php-7.4.0
\
&&
./buildconf
--force
\
&&
./configure
\
--enable-maintainer-zts
\
--with-openssl
\
--with-zlib
\
--prefix
=
/usr/local/php-7.4-zts
\
&&
make
\
&&
make
install
\
&&
make clean
RUN
wget
-O
phpunit https://phar.phpunit.de/phpunit-8.phar
\
&&
chmod
+x phpunit
\
&&
cp
phpunit /usr/local/php-7.4/bin
\
&&
mv
phpunit /usr/local/php-7.4-zts/bin
# Install php dependencies
RUN
apt-get clean
&&
apt-get update
&&
apt-get
install
-y
--force-yes
\
valgrind
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment