You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/05/01 00:04:12 UTC

[incubator-pulsar] branch master updated: Fix Golang setup in Dockerfile (#1690)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new f5d9502  Fix Golang setup in Dockerfile (#1690)
f5d9502 is described below

commit f5d95028dc3953c1ed89fb0a114b18528da76715
Author: Luc Perkins <lu...@gmail.com>
AuthorDate: Mon Apr 30 17:04:10 2018 -0700

    Fix Golang setup in Dockerfile (#1690)
    
    * When preparing pulsar-build Docker image, ensure apt-get update is not cached
    
    * add Go setup to Dockerfile for website build
    
    * update PATH
    
    * set proper env vars
    
    * re-add golang install to main apt-get statement
---
 build/docker/Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile
index 35d04a5..7a1cfff 100644
--- a/build/docker/Dockerfile
+++ b/build/docker/Dockerfile
@@ -54,7 +54,9 @@ RUN rvm install 2.4.1
 RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
 RUN pip install pdoc
 
-# Install Protobuf doc generator
+# Install Protobuf doc generator (requires Go)
+ENV GOPATH "$HOME/go"
+ENV PATH "/usr/lib/go-1.10/bin:$GOPATH/bin:$PATH"
 RUN go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
 
 # Build the patched protoc

-- 
To stop receiving notification emails like this one, please contact
mmerli@apache.org.