Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit b0b2d4d

Browse files
authored
Update python3.6/3.7 images. (#103)
- Update base images. - Update some packages to get security fixes.
1 parent 31b5417 commit b0b2d4d

File tree

4 files changed

+207
-22
lines changed

4 files changed

+207
-22
lines changed

python3.6/CHANGELOG.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,88 @@
11
# IBM Functions Python 3.6 Runtime Container
22

3+
## 1.25.0
4+
Changes:
5+
- update to new base image
6+
- update pip from `19.2.3` to `20.0.2`
7+
8+
Python version:
9+
- [3.6.9](https://github.com/docker-library/python/blob/721671c28aad96ad2c1970e83c2af71ceff15f1b/3.6/jessie/slim/Dockerfile)
10+
11+
Python packages:
12+
- attrs==19.3.0
13+
- autobahn==20.2.1
14+
- Automat==20.2.0
15+
- beautifulsoup4==4.7.1
16+
- botocore==1.15.5
17+
- cassandra-driver==3.16.0
18+
- certifi==2019.11.28
19+
- cffi==1.14.0
20+
- chardet==3.0.4
21+
- Click==7.0
22+
- cloudant==2.11.0
23+
- constantly==15.1.0
24+
- cryptography==2.8
25+
- cssselect==1.1.0
26+
- docutils==0.15.2
27+
- elasticsearch==5.5.3
28+
- Flask==1.0.2
29+
- gevent==1.4.0
30+
- greenlet==0.4.15
31+
- httplib2==0.12.1
32+
- hyperlink==19.0.0
33+
- ibm-cos-sdk==2.4.3
34+
- ibm-cos-sdk-core==2.6.0
35+
- ibm-cos-sdk-s3transfer==2.6.0
36+
- ibm-db==2.0.9
37+
- ibmcloudsql==0.2.23
38+
- idna==2.8
39+
- incremental==17.5.0
40+
- itsdangerous==1.1.0
41+
- Jinja2==2.11.1
42+
- jmespath==0.9.4
43+
- kafka-python==1.4.4
44+
- lxml==4.3.1
45+
- MarkupSafe==1.1.1
46+
- numpy==1.16.1
47+
- pandas==0.24.1
48+
- parsel==1.5.2
49+
- pika==0.13.0
50+
- Pillow==5.4.1
51+
- pip==20.0.2
52+
- psycopg2==2.7.7
53+
- pyarrow==0.16.0
54+
- pyasn1==0.4.8
55+
- pyasn1-modules==0.2.8
56+
- pycparser==2.19
57+
- PyDispatcher==2.0.5
58+
- PyHamcrest==2.0.0
59+
- pymongo==3.7.2
60+
- pyOpenSSL==19.1.0
61+
- python-dateutil==2.7.5
62+
- pytz==2019.3
63+
- queuelib==1.5.0
64+
- redis==2.10.6
65+
- requests==2.21.0
66+
- scikit-learn==0.20.2
67+
- scipy==1.2.1
68+
- Scrapy==1.6.0
69+
- service-identity==18.1.0
70+
- setuptools==45.2.0
71+
- simplejson==3.16.0
72+
- six==1.14.0
73+
- soupsieve==2.0
74+
- tornado==4.5.2
75+
- Twisted==19.7.0
76+
- txaio==20.1.1
77+
- urllib3==1.24.3
78+
- virtualenv==16.3.0
79+
- w3lib==1.21.0
80+
- watson-developer-cloud==1.7.1
81+
- Werkzeug==1.0.0
82+
- wheel==0.33.4
83+
- zope.interface==4.7.1
84+
85+
386
## 1.24.0
487
Changes:
588
- update to new base image

python3.6/Dockerfile

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,38 @@ FROM python:3.6-slim-jessie
22

33
ENV FLASK_PROXY_PORT 8080
44

5-
RUN apt-get update && apt-get install -y \
6-
gcc \
7-
libc-dev \
8-
libxslt-dev \
9-
libxml2-dev \
10-
libffi-dev \
11-
libssl-dev \
12-
zip \
13-
unzip \
14-
vim \
15-
&& rm -rf /var/lib/apt/lists/*
16-
17-
RUN apt-cache search linux-headers-generic
18-
195
COPY requirements.txt requirements.txt
206

21-
RUN pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt
22-
23-
# create action working directory
24-
RUN mkdir -p /action
7+
RUN apt-get update \
8+
# add some packages required for the pip install
9+
&& apt-get install -y \
10+
gcc \
11+
libc-dev \
12+
libxslt-dev \
13+
libxml2-dev \
14+
libffi-dev \
15+
libssl-dev \
16+
zip \
17+
unzip \
18+
vim \
19+
# add secutity updates for certain packages
20+
&& apt-get install -y \
21+
e2fsprogs \
22+
openssl \
23+
tzdata \
24+
libgcrypt20 \
25+
# cleanup package lists, they are not used anymore in this image
26+
&& rm -rf /var/lib/apt/lists/* \
27+
&& apt-cache search linux-headers-generic \
28+
# install additional python modules
29+
&& pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt \
30+
# create action working directory
31+
&& mkdir -p /action \
32+
&& mkdir -p /actionProxy \
33+
&& mkdir -p /pythonAction
2534

26-
RUN mkdir -p /actionProxy
2735
ADD https://raw.githubusercontent.com/apache/openwhisk-runtime-docker/8b2e205c39d84ed5ede6b1b08cccf314a2b13105/core/actionProxy/actionproxy.py /actionProxy/actionproxy.py
2836

29-
RUN mkdir -p /pythonAction
3037
ADD https://raw.githubusercontent.com/apache/openwhisk-runtime-python/3%401.0.3/core/pythonAction/pythonrunner.py /pythonAction/pythonrunner.py
3138

3239
CMD ["/bin/bash", "-c", "cd /pythonAction && python -u pythonrunner.py"]

python3.7/CHANGELOG.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,91 @@
11
# IBM Functions Python 3.7 Runtime Container
22

3+
## 1.14.0
4+
Changes:
5+
- update to new base image
6+
- update pip from `19.3.1` to `20.0.2`
7+
8+
Python version:
9+
- [3.7.5](https://github.com/docker-library/python/blob/ab8b829cfefdb460ebc17e570332f0479039e918/3.7/stretch/Dockerfile)
10+
11+
Python packages:
12+
- attrs==19.3.0
13+
- Automat==0.8.0
14+
- beautifulsoup4==4.8.0
15+
- botocore==1.15.5
16+
- cassandra-driver==3.18.0
17+
- certifi==2019.11.28
18+
- cffi==1.13.2
19+
- chardet==3.0.4
20+
- Click==7.0
21+
- cloudant==2.12.0
22+
- constantly==15.1.0
23+
- cryptography==2.8
24+
- cssselect==1.1.0
25+
- docutils==0.15.2
26+
- elasticsearch==6.3.1
27+
- etcd3==0.10.0
28+
- Flask==1.0.2
29+
- gevent==1.4.0
30+
- greenlet==0.4.15
31+
- grpcio==1.27.2
32+
- httplib2==0.13.0
33+
- hyperlink==19.0.0
34+
- ibm-cos-sdk==2.5.1
35+
- ibm-cos-sdk-core==2.6.0
36+
- ibm-cos-sdk-s3transfer==2.6.0
37+
- ibm-db==3.0.1
38+
- ibmcloudsql==0.2.23
39+
- idna==2.7
40+
- incremental==17.5.0
41+
- itsdangerous==1.1.0
42+
- Jinja2==2.11.1
43+
- jmespath==0.9.4
44+
- kafka-python==1.4.6
45+
- lxml==4.3.4
46+
- MarkupSafe==1.1.1
47+
- numpy==1.16.4
48+
- pandas==0.24.2
49+
- parsel==1.5.2
50+
- pika==1.0.1
51+
- Pillow==6.2.1
52+
- pip==20.0.2
53+
- protobuf==3.11.3
54+
- psycopg2==2.8.2
55+
- pyarrow==0.16.0
56+
- pyasn1==0.4.8
57+
- pyasn1-modules==0.2.7
58+
- pycparser==2.19
59+
- PyDispatcher==2.0.5
60+
- PyHamcrest==1.9.0
61+
- PyJWT==1.7.1
62+
- pymongo==3.8.0
63+
- pyOpenSSL==19.1.0
64+
- python-dateutil==2.8.0
65+
- pytz==2019.3
66+
- queuelib==1.5.0
67+
- redis==3.2.1
68+
- requests==2.22.0
69+
- scikit-learn==0.20.3
70+
- scipy==1.2.1
71+
- Scrapy==1.6.0
72+
- service-identity==18.1.0
73+
- setuptools==45.2.0
74+
- simplejson==3.16.0
75+
- six==1.14.0
76+
- soupsieve==2.0
77+
- tenacity==6.0.0
78+
- tornado==4.5.2
79+
- Twisted==19.7.0
80+
- urllib3==1.23
81+
- virtualenv==16.7.1
82+
- w3lib==1.21.0
83+
- watson-developer-cloud==2.8.1
84+
- websocket-client==0.48.0
85+
- Werkzeug==1.0.0
86+
- wheel==0.33.6
87+
- zope.interface==4.7.1
88+
389
## 1.13.0
490
Changes:
591
- update to new base image

python3.7/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
FROM openwhisk/actionloop-python-v3.7:36721d6
1+
FROM openwhisk/actionloop-python-v3.7:248efb5
22

33
COPY requirements.txt requirements.txt
44

5-
RUN pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt
5+
RUN apt-get update \
6+
# add secutity updates for certain packages
7+
&& apt-get install -y file git \
8+
# cleanup package lists, they are not used anymore in this image
9+
&& rm -rf /var/lib/apt/lists/* \
10+
# We do not have mysql-server installed but mysql-common contains config files (/etc/mysql/my.cnf) for it.
11+
# We need to add some dummy entries to /etc/mysql/my.cnf to sattisfy vulnerability checking of it.
12+
&& echo "\n[mysqld]\nssl-ca=/tmp/ca.pem\nssl-cert=/tmp/server-cert.pem\nssl-key=/tmp/server-key.pem\n" >> /etc/mysql/my.cnf \
13+
# install additional python modules
14+
&& pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt

0 commit comments

Comments
 (0)