Initialization
The init
command allows you to bootstrap certain settings for an aspire project that Aspir8 will use.
ContainerRegistry: setting this means you do not need one in your csproj, and if it isn't found - all builds will use this.
ContainerRepositoryPrefix: setting this all container repositories in image names will be prefixed with this value.
ContainerTag: will override the container tag used if not in your csproj - if not specified in settings, will fall-back to latest.
ContainerBuilder: this will allow you to set if docker or podman will be used.
TemplatePath: this customises the path used when loading templates that get transformed to manifests, you can take the templates folder from the source, and modify to your hearts content with all your custom changes, and as long as you don't remove the placeholders, Aspir8 will use those instead of its built in.
Example
Cli Options (Optional)
Option | Alias | Environmental Variable Counterpart | Description |
---|---|---|---|
--project-path | -p |
| The path to the aspire project. |
--container-builder |
| The Container Builder: can be | |
--container-registry | -cr |
| The Container Registry to use as the fall-back value for all containers. |
--container-repository-prefix | -crp |
| The Container Repository Prefix to use as the fall-back value for all containers. |
--container-image-tag | -ct |
| The Container Image Tag to use as the fall-back value for all containers. |
--template-path | -tp |
| The path to the templates directory. |
--non-interactive |
| Disables interactive mode for the command | |
--disable-secrets |
| Disables secrets management features. |