This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-java.git
The following commit(s) were added to refs/heads/master by this push:
new 71df9b8 Update from source build. (#118)
71df9b8 is described below
commit 71df9b8a541cb1100df45c36e24f72b7d8363503
Author: rodric rabbah <[email protected]>
AuthorDate: Mon Mar 1 17:54:47 2021 -0500
Update from source build. (#118)
---
core/java8actionloop/Dockerfile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/java8actionloop/Dockerfile b/core/java8actionloop/Dockerfile
index 7d7bacf..1a5b821 100644
--- a/core/java8actionloop/Dockerfile
+++ b/core/java8actionloop/Dockerfile
@@ -17,7 +17,12 @@
# build go proxy from source
FROM golang:1.15 AS builder_source
-RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv
/go/bin/main /bin/proxy
+ARG GO_PROXY_GITHUB_USER=apache
+ARG GO_PROXY_GITHUB_BRANCH=master
+RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
+ https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
+ cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
+ mv proxy /bin/proxy
# or build it from a release
FROM golang:1.15 AS builder_release