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-swift.git


The following commit(s) were added to refs/heads/master by this push:
     new 6c39440  Update from source build. (#129)
6c39440 is described below

commit 6c394406b671f81df4a22588b16cc29b29402f43
Author: rodric rabbah <[email protected]>
AuthorDate: Mon Mar 1 13:46:02 2021 -0500

    Update from source build. (#129)
---
 core/swift42Action/Dockerfile | 7 ++++++-
 core/swift51Action/Dockerfile | 7 ++++++-
 core/swift53Action/Dockerfile | 7 ++++++-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/core/swift42Action/Dockerfile b/core/swift42Action/Dockerfile
index a5ceace..b434b2c 100644
--- a/core/swift42Action/Dockerfile
+++ b/core/swift42Action/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
diff --git a/core/swift51Action/Dockerfile b/core/swift51Action/Dockerfile
index 6326a57..2e7289e 100644
--- a/core/swift51Action/Dockerfile
+++ b/core/swift51Action/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
diff --git a/core/swift53Action/Dockerfile b/core/swift53Action/Dockerfile
index d12be77..3d4aaf6 100644
--- a/core/swift53Action/Dockerfile
+++ b/core/swift53Action/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

Reply via email to