Skip to content

m blueprints

Create the [m_dir]/.m/blueprints directory.

This will add shell scripts to build the specified docker images as stated in the [m_dir]/m.yaml file.

Source code in m/cli/commands/blueprints.py
class Arguments(BaseModel):
    """Create the `[m_dir]/.m/blueprints` directory.

    This will add shell scripts to build the specified docker images as
    stated in the `[m_dir]/m.yaml` file.
    """

    m_dir: str = Arg(
        default='m',
        help='m project directory',
        positional=True,
    )
    m_tag: str = Arg(
        default='M_TAG',
        validator=env_var_or_empty,
        help='unique version to use for all the images',
    )
    cache_from_pr: str = Arg(
        default='M_CACHE_FROM_PR',
        validator=env_var_or_empty,
        help='pull request number to attempt to use as cache',
    )
    skip_makefile: bool = Arg(
        default=False,
        help='do not update Makefile',
    )
    skip_workflow: bool = Arg(
        default=False,
        help='do not update github workflow',
    )

Options

--m-tag

  • default: env.M_TAG

unique version to use for all the images

--cache-from-pr

  • default: env.M_CACHE_FROM_PR

pull request number to attempt to use as cache

--skip-makefile

  • default: false

do not update Makefile

--skip-workflow

  • default: false

do not update github workflow

Positional arguments

m_dir

  • default: 'm'

m project directory