aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_node_base
diff options
context:
space:
mode:
authorGravatar murgatroid99 <michael.lumish@gmail.com>2015-01-28 10:57:58 -0800
committerGravatar murgatroid99 <michael.lumish@gmail.com>2015-01-28 10:57:58 -0800
commitc3c3a8f0512bc19d49d3a24b5146d7214da5fbe7 (patch)
treea943effb7b5545d1c20b0c33a1af76829f2700d2 /tools/dockerfile/grpc_node_base
parentc5e9018de9fe4d3b5b2c8f9084c63a34bbfeb941 (diff)
Added docker files for node interop tests
Diffstat (limited to 'tools/dockerfile/grpc_node_base')
-rw-r--r--tools/dockerfile/grpc_node_base/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/dockerfile/grpc_node_base/Dockerfile b/tools/dockerfile/grpc_node_base/Dockerfile
new file mode 100644
index 0000000000..28bd7b2556
--- /dev/null
+++ b/tools/dockerfile/grpc_node_base/Dockerfile
@@ -0,0 +1,22 @@
+# Base Dockerfile for gRPC Node.
+#
+# Includes Node installation dependencies
+FROM grpc/base
+
+RUN curl -sL https://deb.nodesource.com/setup | bash -
+
+RUN apt-get update && apt-get install -y nodejs
+
+RUN npm install -g node-gyp
+
+# 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 the C core
+RUN make static_c shared_c -j12 -C /var/local/git/grpc
+
+# Define the default command.
+CMD ["bash"] \ No newline at end of file