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

feat: set builder images in templates and .faas.yaml #136

Merged
merged 1 commit into from Sep 24, 2020

Commits on Sep 24, 2020

  1. feat: set builder images in templates and .faas.yaml

    This commit adds a .builder.yaml file to each template directory. In the file
    there is at the moment a single key/value pair, "default: <image>", where the
    actual builder image name is <image>. Using a mapping allows the future
    possibility that a user may specify a builder image by name via a flag on the
    command line. For example,
    
    ```console
    faas build --builder native
    ```
    
    When a project is initialized, the .builder.yaml file is read, and the default
    builder is saved in the project's .faas.yaml file. The .faas.yaml file is then
    consulted when building an image with `faas build`. If the builder image is
    specified, then the builder will use it. Otherwise, it will fallback to the
    defaults. This allows developers to create custom builders, and specify them
    in the configuration file.
    
    After extracting the builder image from .builder.yaml in the project directory,
    this file is deleted.
    
    This commit also adds Verbose to the init command.
    lance committed Sep 24, 2020
    Copy the full SHA
    f90036b View commit details
    Browse the repository at this point in the history