-
Notifications
You must be signed in to change notification settings - Fork 22
/
builder.toml
64 lines (49 loc) · 1.36 KB
/
builder.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
description = "Ubuntu 18 base image with buildpacks for Python"
[[buildpacks]]
id = "google.config.entrypoint"
uri = "entrypoint.tgz"
[[buildpacks]]
id = "google.python.pip"
uri = "python/pip.tgz"
[[buildpacks]]
id = "google.python.functions-framework"
uri = "python/functions_framework.tgz"
[[buildpacks]]
id = "google.python.missing-entrypoint"
uri = "python/missing_entrypoint.tgz"
[[buildpacks]]
id = "google.utils.label"
uri = "label.tgz"
##############
# Python 1/2 #
##############
# Python functions.
[[order]]
[[order.group]]
id = "google.python.functions-framework"
[[order.group]]
id = "google.python.pip"
optional = true
[[order.group]]
id = "google.config.entrypoint"
optional = true
[[order.group]]
id = "google.utils.label"
##############
# Python 2/2 #
##############
# This buildpack group will always fail but with a clear message that the
# entrypoint is missing. It must be the last group otherwise projects with
# a single .py file and no entrypoint will fail
[[order]]
[[order.group]]
id = "google.python.missing-entrypoint"
[[order.group]]
id = "google.utils.label"
# Currently built with //builders/py37/stack/stack:build.
[stack]
id = "google"
build-image = "openfunctiondev/buildpacks-py37-build:v1"
run-image = "openfunctiondev/buildpacks-py37-run:v1"
[lifecycle]
version = "0.13.2"