Skip to content

Commit 55b7c10

Browse files
author
Michele Sciabarra
authored
use apache sources (#86)
* use runtime from apache sources * built also actionloop for pyhton3.7 ai
1 parent 90a8e85 commit 55b7c10

6 files changed

Lines changed: 18 additions & 11 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ deploy:
4545
all_branches: true
4646
repo: apache/openwhisk-runtime-python
4747
- provider: script
48-
script: "./tools/travis/publish.sh openwhisk 3 nightly && ./tools/travis/publish.sh openwhisk 3-ai nightly && ./tools/travis/publish.sh openwhisk 3-loop nightly"
48+
script: "./tools/travis/publish.sh openwhisk 3 nightly && ./tools/travis/publish.sh openwhisk 3-ai nightly && ./tools/travis/publish.sh openwhisk 3-loop nightly && ./tools/travis/publish.sh openwhisk 3-loopai nightly"
4949
on:
5050
branch: master
5151
repo: apache/openwhisk-runtime-python

core/python2ActionLoop/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717

1818
# build go proxy from source
1919
FROM golang:1.12 AS builder_source
20-
#RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv /go/bin/main /bin/proxy
21-
RUN git clone --branch dev \
22-
https://github.com/nimbella-corp/openwhisk-runtime-go /src ;\
20+
ARG GO_PROXY_GITHUB_USER=apache
21+
ARG GO_PROXY_GITHUB_BRANCH=master
22+
RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
23+
https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
2324
cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
2425
mv proxy /bin/proxy
2526

core/python3ActionLoop/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
#
1717
# build go proxy from source
1818
FROM golang:1.12 AS builder_source
19-
#RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv /go/bin/main /bin/proxy
20-
RUN git clone --branch dev \
21-
https://github.com/nimbella-corp/openwhisk-runtime-go /src ;\
19+
ARG GO_PROXY_GITHUB_USER=apache
20+
ARG GO_PROXY_GITHUB_BRANCH=master
21+
RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
22+
https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
2223
cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
2324
mv proxy /bin/proxy
2425

core/python3AiActionLoop/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@
1717

1818
# build go proxy from source
1919
FROM golang:1.12 AS builder_source
20-
#RUN env CGO_ENABLED=0 go get github.com/apache/openwhisk-runtime-go/main && mv /go/bin/main /bin/proxy
21-
RUN git clone --branch dev \
22-
https://github.com/nimbella-corp/openwhisk-runtime-go /src ;\
20+
ARG GO_PROXY_GITHUB_USER=apache
21+
ARG GO_PROXY_GITHUB_BRANCH=master
22+
RUN git clone --branch ${GO_PROXY_GITHUB_BRANCH} \
23+
https://github.com/${GO_PROXY_GITHUB_USER}/openwhisk-runtime-go /src ;\
2324
cd /src ; env GO111MODULE=on CGO_ENABLED=0 go build main/proxy.go && \
2425
mv proxy /bin/proxy
2526

2627
# or build it from a release
2728
FROM golang:1.12 AS builder_release
2829
ARG GO_PROXY_RELEASE_VERSION=1.12@1.15.0
2930
RUN curl -sL \
30-
https://github.com/apache/openwhisk-runtime-go/archive/{$GO_PROXY_RELEASE_VERSION}.tar.gz\
31+
https://github.com/apache/openwhisk-runtime-go/archive/${GO_PROXY_RELEASE_VERSION}.tar.gz\
3132
| tar xzf -\
3233
&& cd openwhisk-runtime-go-*/main\
3334
&& GO111MODULE=on go build -o /bin/proxy

tests/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ tasks.withType(ScalaCompile) {
4444
}
4545

4646
task testPython3(type: Test) {
47+
// python2 is end-of-life and the runtime not built by default
48+
exclude 'scala/runtime/actionContainers/Python2ActionLoopContainerTests'
4749
}
4850

4951
task buildArtifacts(type:Exec) {

tools/travis/publish.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ elif [ ${RUNTIME_VERSION} == "3-ai" ]; then
3636
RUNTIME="python3AiAction"
3737
elif [ ${RUNTIME_VERSION} == "3-loop" ]; then
3838
RUNTIME="pythonActionLoop"
39+
elif [ ${RUNTIME_VERSION} == "3-loopai" ]; then
40+
RUNTIME="python3AiActionLoop"
3941
fi
4042

4143
if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then

0 commit comments

Comments
 (0)