Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bytemain opened this issue Jul 14, 2021 · 1 comment
Open

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

bytemain opened this issue Jul 14, 2021 · 1 comment

Comments

@bytemain
Copy link

目前是发现有 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 的参数,并没有本地打包的选项

@aliuq
Copy link

aliuq commented Aug 9, 2021

有个参数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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants