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-php.git
The following commit(s) were added to refs/heads/master by this push:
new fd3863c Update from source build. (#100)
fd3863c is described below
commit fd3863c4d6b5de744356a9ad739cafe7cc4e8587
Author: rodric rabbah <[email protected]>
AuthorDate: Mon Mar 1 17:54:26 2021 -0500
Update from source build. (#100)
---
core/php7.3Action/Dockerfile | 7 ++++++-
core/php7.4Action/Dockerfile | 7 ++++++-
core/php8.0Action/Dockerfile | 7 ++++++-
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/core/php7.3Action/Dockerfile b/core/php7.3Action/Dockerfile
index 65ddcc2..410e8b6 100644
--- a/core/php7.3Action/Dockerfile
+++ b/core/php7.3Action/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/php7.4Action/Dockerfile b/core/php7.4Action/Dockerfile
index e53dc33..2ab3556 100644
--- a/core/php7.4Action/Dockerfile
+++ b/core/php7.4Action/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/php8.0Action/Dockerfile b/core/php8.0Action/Dockerfile
index ee4d83e..fcb902f 100644
--- a/core/php8.0Action/Dockerfile
+++ b/core/php8.0Action/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