funcraft icon indicating copy to clipboard operation
funcraft copied to clipboard

在有 Funfile 的情况下支持本地打包

Open bytemain opened this issue 4 years ago • 1 comments

目前是发现有 Funfile 就启用 docker。

using template: template.yml

start building function dependencies without docker


building xxx/xxx

Funfile exist, Fun will use container to build forcely

但是我们的 CI 上需要本地打包,开发时因为是 Mac 所以要使用容器进行打包。。

看了一下 build 的参数,并没有本地打包的选项

bytemain avatar Jul 14 '21 03:07 bytemain

有个参数fun build -d

❯ fun build -h
Usage: fun build [options] [[service/]function]

Build the dependencies.

Options:
  -d, --use-docker           Use docker container to build functions
  -b, --use-buildkit         Use buildkit to build functions
  -y, --assume-yes           Automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively.
  -t, --template [template]  The path of fun template file.
  -h, --help                 display help for command

aliuq avatar Aug 09 '21 06:08 aliuq