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

Proposal: Add support for build-time environment variables to the 'build' API #9176

Closed
wants to merge 1 commit into from

Commits on Jul 23, 2015

  1. Add support for passing build-time environment variables in build con…

    …text
    
    - The build-time environment variables are passed as environment-context for command(s)
    run as part of the RUN primitve. These variables are not persisted in environment of
    intermediate and final images when passed as context for RUN. The build environment
    is prepended to the intermediate continer's command string for aiding cache lookups.
    It also helps with build traceability. But this also makes the feature less secure from
    point of view of passing build time secrets.
    
    - The build-time environment variables also get used to expand the symbols used in certain
    Dockerfile primitves like ADD, COPY, USER etc, without an explicit prior definiton using a
    ENV primitive. These variables get persisted in the intermediate and final images
    whenever they are expanded.
    
    Signed-off-by: Madhav Puri <madhav.puri@gmail.com>
    mapuri committed Jul 23, 2015
    1 Configuration menu
    Copy the full SHA
    6bb7c17 View commit details
    Browse the repository at this point in the history