You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --container flag indicates that the function's container should be
39
40
run rather than running the source code directly. This may require that
40
41
the function's container first be rebuilt. Building the container on or
41
-
off can be altered using the --build flag. The default value --build=auto
42
-
indicates the system should automatically build the container only if
43
-
necessary.
42
+
off can be altered using the --build flag. The value --build=auto
43
+
can be used to indicate the function should be run in a container, with
44
+
the container automatically built if necessary.
45
+
46
+
The --container flag defaults to true if the builder defined for the
47
+
function is a containerized builder such as Pack or S2I, and in the case
48
+
where the function's runtime requires containerized builds (is not yet
49
+
supported by the Host builder.
44
50
45
51
Process Scaffolding
46
52
This is an Experimental Feature currently available only to Go projects.
@@ -103,6 +109,8 @@ EXAMPLES
103
109
"You may provide this flag multiple times for setting multiple environment variables. "+
104
110
"To unset, specify the environment variable name followed by a \"-\" (e.g., NAME-).")
105
111
cmd.Flags().Duration("start-timeout", f.Run.StartTimeout, fmt.Sprintf("time this function needs in order to start. If not provided, the client default %v will be in effect. ($FUNC_START_TIMEOUT)", fn.DefaultStartTimeout))
Copy file name to clipboardExpand all lines: docs/reference/func_build.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ func build
58
58
59
59
```
60
60
--build-timestamp Use the actual time as the created time for the docker image. This is only useful for buildpacks builder.
61
-
-b, --builder string Builder to use when creating the function's container. Currently supported builders are "pack" and "s2i". ($FUNC_BUILDER) (default "s2i")
61
+
-b, --builder string Builder to use when creating the function's container. Currently supported builders are "host", "pack" and "s2i". ($FUNC_BUILDER) (default "s2i")
62
62
--builder-image string Specify a custom builder image for use by the builder other than its default. ($FUNC_BUILDER_IMAGE)
63
63
-c, --confirm Prompt to confirm options interactively ($FUNC_CONFIRM)
0 commit comments