aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Donna Dionne <donnadionne@google.com>2015-05-27 15:57:18 -0700
committerGravatar Donna Dionne <donnadionne@google.com>2015-05-27 15:57:18 -0700
commit241563b00301c68e306c4c1662149f131b22a15c (patch)
treed29ed6f3d40e0d2c9ba60e529e9d6cecb152c427 /tools
parent8c627c8cd01449571679de4e1521511d302b2ff1 (diff)
Adding 2 helper build scripts to allow docker images to be built
from local repositories. Framework is already set up in private_build_and_test.sh; helper build script is needed for each langauge.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dockerfile/grpc_csharp_mono/build.sh10
-rwxr-xr-xtools/dockerfile/grpc_php/build.sh18
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/dockerfile/grpc_csharp_mono/build.sh b/tools/dockerfile/grpc_csharp_mono/build.sh
new file mode 100755
index 0000000000..a7737d752e
--- /dev/null
+++ b/tools/dockerfile/grpc_csharp_mono/build.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cp -R /var/local/git-clone/grpc /var/local/git
+
+make install_grpc_csharp_ext -j12 -C /var/local/git/grpc
+
+cd /var/local/git/grpc/src/csharp && mono /var/local/NuGet.exe restore Grpc.sln
+
+cd /var/local/git/grpc/src/csharp && xbuild Grpc.sln
+
diff --git a/tools/dockerfile/grpc_php/build.sh b/tools/dockerfile/grpc_php/build.sh
new file mode 100755
index 0000000000..fbbc61d5fa
--- /dev/null
+++ b/tools/dockerfile/grpc_php/build.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cp -R /var/local/git-clone/grpc /var/local/git
+
+make clean -C /var/local/git/grpc
+
+make install_c -j12 -C /var/local/git/grpc
+
+cd /var/local/git/grpc/src/php/ext/grpc && git pull && phpize
+
+cd /var/local/git/grpc/src/php/ext/grpc \
+ && ./configure \
+ && make
+
+cd /var/local/git/grpc/src/php && composer install
+
+cd /var/local/git/grpc/src/php && protoc-gen-php -i tests/interop/ -o tests/interop/ tests/interop/test.proto
+