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

Commit fc223c7

Browse files
authored
Update to new parent image (go 1.15, debian buster). (#124)
- Update to new parent image. It is now go 1.15 and debian buster based. Reason to do this is to continue to get security fixes. Go 1.12 went out of support and buster is now latest stable. - Update 2 testcases as errors during init are now returned in the logs instead of the response itself.
1 parent d2bb926 commit fc223c7

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

python3.7/CHANGELOG.md

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

3+
## 1.21.0
4+
Changes:
5+
- Update to new parent image to continue getting security fixes.
6+
The new parent is now based on go 1.15 (was go 1.12 before) and debian buster (was debian stretch before).
7+
8+
Python version:
9+
- [3.7.9](https://github.com/docker-library/python/blob/35d8d9712c3ea4cbc4004a0e62ab61100b6fed99/3.7/buster/Dockerfile)
10+
11+
Python packages:
12+
- The file [requirements.txt](requirements.txt) lists the packages we guarantee to be included in this runtime.<br/>
13+
Ensure that you only use packages mentioned there.<br/>
14+
Other python packages might be part of this runtime, but only due to indirect dependencies of the above listed packages. These indirectly included packages are candidates to be removed at any time in case they are not required by the referring package anymore.
15+
16+
317
## 1.20.0
418
Changes:
519
- update ibmcloudsql from `0.4.2` to `0.4.9`

python3.7/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openwhisk/actionloop-python-v3.7:248efb5
1+
FROM openwhisk/actionloop-python-v3.7:4e43668
22

33
COPY requirements.txt requirements.txt
44

tests/src/test/scala/actionContainers/IBMPythonActionContainerTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class IBMPythonActionContainerTests extends BasicActionRunnerTests with WskActor
238238
// it actually means it is actionloop
239239
// it checks the error at init time
240240
initCode should be(502)
241-
initRes.get.fields.get("error").get.toString() should include("No module")
241+
initRes.get.fields.get("error").get.toString() should include("Cannot start action. Check logs for details.")
242242
}
243243
}
244244

@@ -379,7 +379,7 @@ class IBMPythonActionContainerTests extends BasicActionRunnerTests with WskActor
379379
// action loop detects those errors at init time
380380
val (initCode, initRes) = c.init(initPayload(code))
381381
initCode should be(502)
382-
initRes.get.fields.get("error").get.toString() should include("Traceback")
382+
initRes.get.fields.get("error").get.toString() should include("Cannot start action. Check logs for details.")
383383
}
384384
}
385385

0 commit comments

Comments
 (0)