-
Notifications
You must be signed in to change notification settings - Fork 69
Support python39 #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Support python39 #110
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fcf37e1
updating to v3.9
michele-sciabarra c186a65
build also 39
michele-sciabarra a9dedf6
Resolve akka versions explicitly.
Luke-Roy-IBM 6543586
Update core/python39ActionLoop/Dockerfile
sciabarracom 232cbbf
Update core/python39ActionLoop/Dockerfile
sciabarracom de4a0fe
bug fixes
michele-sciabarra b85a665
aligned requirements
michele-sciabarra 1c76e47
big test refactoring
michele-sciabarra eeeeee6
refactoring and updated docs
michele-sciabarra d67eab7
using new directories
michele-sciabarra ae30491
fixes
michele-sciabarra 705bd44
references to apache
michele-sciabarra 7bdec45
Update README.md
sciabarracom e7a3aa7
rename not reported
michele-sciabarra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| ext.dockerImageName = 'action-python-v3.6-ai' | ||
| apply from: '../../gradle/docker.gradle' | ||
|
|
||
| distDocker.dependsOn 'copyLib' | ||
| distDocker.dependsOn 'copyBin' | ||
| distDocker.finalizedBy('cleanup') | ||
|
|
||
| task copyLib(type: Copy) { | ||
| from '../python3Action/lib' | ||
| into './lib' | ||
| } | ||
|
|
||
| task copyBin(type: Copy) { | ||
| from '../python3Action/bin' | ||
| into './bin' | ||
| } | ||
|
|
||
| task cleanup(type: Delete) { | ||
| delete 'bin' | ||
| delete 'lib' | ||
| } |
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| # build go proxy from source | ||
| FROM golang:1.15 AS builder_source | ||
| 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 | ||
| ARG GO_PROXY_RELEASE_VERSION=1.15@1.17.0 | ||
| RUN curl -sL \ | ||
| https://github.com/apache/openwhisk-runtime-go/archive/{$GO_PROXY_RELEASE_VERSION}.tar.gz\ | ||
| | tar xzf -\ | ||
| && cd openwhisk-runtime-go-*/main\ | ||
| && GO111MODULE=on go build -o /bin/proxy | ||
|
|
||
| FROM python:3.9-buster | ||
|
|
||
| # select the builder to use | ||
| ARG GO_PROXY_BUILD_FROM=source | ||
|
|
||
| # Install common modules for python | ||
| COPY requirements.txt requirements.txt | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| RUN mkdir -p /action | ||
| WORKDIR / | ||
| COPY --from=builder_source /bin/proxy /bin/proxy_source | ||
| COPY --from=builder_release /bin/proxy /bin/proxy_release | ||
| RUN mv /bin/proxy_${GO_PROXY_BUILD_FROM} /bin/proxy | ||
| ADD bin/compile /bin/compile | ||
| ADD lib/launcher.py /lib/launcher.py | ||
|
|
||
| # log initialization errors | ||
| ENV OW_LOG_INIT_ERROR=1 | ||
| # the launcher must wait for an ack | ||
| ENV OW_WAIT_FOR_ACK=1 | ||
| # using the runtime name to identify the execution environment | ||
| ENV OW_EXECUTION_ENV=openwhisk/action-python-v3.9 | ||
| # compiler script | ||
| ENV OW_COMPILER=/bin/compile | ||
|
|
||
| ENTRYPOINT ["/bin/proxy"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # default available packages for action-python-v39 | ||
| beautifulsoup4 == 4.9.3 | ||
| httplib2 == 0.19.1 | ||
| kafka_python == 1.4.7 | ||
| lxml == 4.6.3 | ||
| python-dateutil == 2.8.1 | ||
| requests == 2.25.1 | ||
| scrapy == 1.8.0 | ||
| simplejson == 3.17.2 | ||
| virtualenv == 20.4.7 | ||
| twisted == 21.2.0 | ||
| netifaces == 0.11.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.