mirror of https://github.com/knative/func.git
feat: enabled s2i for python (#1562)
* feat: enable s2i for python Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup: update zz_filesystem_generated.go Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup: test Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup: test Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup: test Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup: script Signed-off-by: Matej Vasek <mvasek@redhat.com> --------- Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
902eaecd57
commit
6d4565158b
File diff suppressed because it is too large
Load Diff
|
@ -40,6 +40,7 @@ var DefaultBuilderImages = map[string]string{
|
|||
"nodejs": "registry.access.redhat.com/ubi8/nodejs-16",
|
||||
"typescript": "registry.access.redhat.com/ubi8/nodejs-16",
|
||||
"quarkus": "registry.access.redhat.com/ubi8/openjdk-17",
|
||||
"python": "registry.access.redhat.com/ubi8/python-39",
|
||||
}
|
||||
|
||||
// DockerClient is subset of dockerClient.CommonAPIClient required by this package
|
||||
|
|
|
@ -64,9 +64,9 @@ func Test_BuildImages(t *testing.T) {
|
|||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "Without builder - unsupported runtime - python",
|
||||
name: "Without builder - supported runtime - python",
|
||||
function: fn.Function{Runtime: "python"},
|
||||
wantErr: true,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "Without builder - unsupported runtime - rust",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec python -m parliament "$(dirname "$0")"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec python -m parliament "$(dirname "$0")"
|
|
@ -18,7 +18,7 @@ import (
|
|||
var runtimeSupportMap = map[string][]string{
|
||||
"node": {"pack", "s2i"},
|
||||
"go": {},
|
||||
"python": {"pack"},
|
||||
"python": {"pack", "s2i"},
|
||||
"quarkus": {"pack", "s2i"},
|
||||
"springboot": {"pack"},
|
||||
"typescript": {"pack", "s2i"},
|
||||
|
|
Loading…
Reference in New Issue