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-ruby.git
The following commit(s) were added to refs/heads/master by this push:
new d8bd4b0 Update from source build. (#53)
d8bd4b0 is described below
commit d8bd4b07e378a5156a5c3008ca112153faebffc0
Author: rodric rabbah <[email protected]>
AuthorDate: Mon Mar 1 13:45:47 2021 -0500
Update from source build. (#53)
---
core/ruby2.6ActionLoop/Dockerfile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/ruby2.6ActionLoop/Dockerfile
b/core/ruby2.6ActionLoop/Dockerfile
index 0991c3d..0999e41 100644
--- a/core/ruby2.6ActionLoop/Dockerfile
+++ b/core/ruby2.6ActionLoop/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