File tree Expand file tree Collapse file tree
tests/dat/blackbox/badaction Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020# Apache OpenWhisk Docker Runtime Container
2121
22+ ## 1.15.0
23+ - Update base python image to ` python:3.11-alpine `
24+ - Update python dependacies
25+
2226## 1.14.0
2327 - Support for __ OW_ACTION_VERSION (openwhisk/4761)
2428
Original file line number Diff line number Diff line change 1616#
1717
1818# Dockerfile for docker skeleton (useful for running blackbox binaries, scripts, or Python 3 actions) .
19- FROM python:3.6 -alpine
19+ FROM python:3.11 -alpine
2020
2121# Upgrade and install basic Python dependencies.
22- # Use quick greenlet==1.1.3.post0 as update version is not compatible with action Proxy
2322RUN apk upgrade --update \
2423 && apk add --no-cache bash perl jq zip git curl wget openssl ca-certificates sed openssh-client \
2524 && update-ca-certificates \
2625 && apk add --no-cache --virtual .build-deps bzip2-dev g++ libc-dev \
2726 && pip install --upgrade pip setuptools six \
28- && pip install --no-cache-dir gevent==1.3.6 flask==1.0.2 greenlet==1.1.3.post0 \
27+ && pip install --no-cache-dir gevent==22.10.2 flask==2.2.3 greenlet==2.0.2 \
2928 && apk del .build-deps
3029
3130ENV FLASK_PROXY_PORT 8080
@@ -40,4 +39,6 @@ RUN mkdir -p /action
4039ADD stub.sh /action/exec
4140RUN chmod +x /action/exec
4241
43- CMD ["/bin/bash" , "-c" , "cd actionProxy && python -u actionproxy.py" ]
42+ WORKDIR /actionProxy
43+
44+ CMD ["python" , "-u" , "actionproxy.py" ]
Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ RUN apk add --no-cache --virtual .build-deps \
3131 && cd /action; gcc -o exec example.c \
3232 && apk del .build-deps
3333
34- CMD ["/bin/bash" , "-c" , "cd actionProxy && python -u actionproxy.py" ]
34+ WORKDIR /actionProxy
35+
36+ CMD ["python" , "-u" , "actionproxy.py" ]
Original file line number Diff line number Diff line change @@ -22,4 +22,6 @@ ENV FLASK_PROXY_PORT 8080
2222
2323ADD runner.py /actionProxy/
2424
25- CMD ["/bin/bash" , "-c" , "cd actionProxy && python -u runner.py" ]
25+ WORKDIR /actionProxy
26+
27+ CMD ["python" , "-u" , "runner.py" ]
You can’t perform that action at this time.
0 commit comments