Beispiel #1
0
def rules():
    return [
        *binary_rules(),
        *build_args_rules(),
        *build_env_rules(),
        *context_rules(),
        *dependencies_rules(),
        *package_rules(),
        *parser_rules(),
        *publish_rules(),
        *run_rules(),
    ]
Beispiel #2
0
def rule_runner() -> RuleRunner:
    rule_runner = RuleRunner(
        rules=[
            *parser_rules(),
            *pex_rules(),
            QueryRule(DockerfileInfo, (DockerImageSourceField, )),
        ],
        target_types=[DockerImageTarget, PexBinary],
    )
    rule_runner.set_options(
        [],
        env_inherit={"PATH", "PYENV_ROOT", "HOME"},
    )
    return rule_runner
Beispiel #3
0
def rule_runner() -> RuleRunner:
    rule_runner = RuleRunner(
        rules=[
            *parser_rules(),
            *pex_rules(),
            inject_docker_dependencies,
            QueryRule(InjectedDependencies, (InjectDockerDependencies, )),
        ],
        target_types=[DockerImageTarget, PexBinary],
    )
    rule_runner.set_options(
        [],
        env_inherit={"PATH", "PYENV_ROOT", "HOME"},
    )
    return rule_runner