|
|
|
@ -43,9 +43,10 @@ RUN cd /var/local \ |
|
|
|
|
&& tar -xf php-5.5.17.tar.gz \ |
|
|
|
|
&& cd php-5.5.17 \ |
|
|
|
|
&& ./configure --with-zlib=/usr --with-libxml-dir=ext/libxml \ |
|
|
|
|
&& make && make install |
|
|
|
|
&& make -j12 && make install |
|
|
|
|
|
|
|
|
|
# Start the daemon that allows access to the protected git-on-borg repos |
|
|
|
|
RUN git clone https://gerrit.googlesource.com/gcompute-tools /var/local/git/gcompute-tools |
|
|
|
|
RUN /var/local/git/gcompute-tools/git-cookie-authdaemon |
|
|
|
|
|
|
|
|
|
# Download the patched PHP protobuf so that PHP gRPC clients can be generated |
|
|
|
@ -64,6 +65,18 @@ ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/s |
|
|
|
|
# rake: a ruby version of make used to build the PHP Protobuf extension |
|
|
|
|
RUN rvm all do gem install ronn rake |
|
|
|
|
|
|
|
|
|
# Get the source from GitHub, this gets the protobuf library as well |
|
|
|
|
RUN git clone git@github.com:google/grpc.git /var/local/git/grpc |
|
|
|
|
RUN cd /var/local/git/grpc && \ |
|
|
|
|
git pull --recurse-submodules && \ |
|
|
|
|
git submodule update --init --recursive |
|
|
|
|
|
|
|
|
|
# Build and install the protobuf library |
|
|
|
|
RUN cd /var/local/git/grpc/third_party/protobuf && \ |
|
|
|
|
./autogen.sh && \ |
|
|
|
|
./configure --prefix=/usr && \ |
|
|
|
|
make -j12 && make check && make install && make clean |
|
|
|
|
|
|
|
|
|
# Install the patched PHP protobuf so that PHP gRPC clients can be generated |
|
|
|
|
# from proto3 schemas. |
|
|
|
|
RUN cd /var/local/git/protobuf-php \ |
|
|
|
@ -75,10 +88,7 @@ RUN wget https://phar.phpunit.de/phpunit.phar \ |
|
|
|
|
&& chmod +x phpunit.phar \ |
|
|
|
|
&& mv phpunit.phar /usr/local/bin/phpunit |
|
|
|
|
|
|
|
|
|
RUN git clone https://team.googlesource.com/one-platform-grpc-team/grpc /var/local/git/grpc |
|
|
|
|
RUN cd /var/local/git/grpc \ |
|
|
|
|
&& git submodule update --init --recursive |
|
|
|
|
|
|
|
|
|
# Build the C core |
|
|
|
|
RUN make static_c shared_c -j12 -C /var/local/git/grpc |
|
|
|
|
|
|
|
|
|
# Define the default command. |
|
|
|
|