shpkpr apps run¶
Run a one-off task in a “production-like” environment.
Uses the current deployment configuration to start up a container locally and run a single command. Environment variables and secrets are extracted from the current deployment configuration and injected into the container when starting up.
shpkpr apps run [OPTIONS] COMMAND [ENV_PAIRS]...
Options
-
--vault-addr<vault_addr>¶ URL of the Vault API to use.
-
--vault-token<vault_token>¶ Token used to authenticate with Vault.
-
-t,--template<template_names>¶ Path of the template to use for deployment.
-
--template-dir<template_path>¶ Base directory in which your templates are stored.
-
-e,--env-prefix<env_prefix>¶ Prefix used to filter environment variables used for templating. [default: SHPKPR]
Arguments
-
COMMAND¶ Required argument
-
ENV_PAIRS¶ Optional argument(s)
Environment variables
-
SHPKPR_VAULT_ADDR¶ Provide a default for
--vault-addr
-
SHPKPR_VAULT_TOKEN¶ Provide a default for
--vault-token
-
SHPKPR_TEMPLATE_DIR¶ Provide a default for
--template-dir