apply
Usage
prism agent apply constructs your agent using the information in your agent's configuration YML. For example, for Docker agents, prism apply constructs a custom Docker image containing your project data.
Usage: prism agent apply [OPTIONS]
Build your agent using a configuration YML.
Examples:
โข prism agent apply -f ./ec2.yml
โข prism agent apply -f /Users/docker.yml
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ * --file -f TEXT Path to agent configuration YML โ
โ [required] โ
โ --log-level -l [info|warn|error|debug] Set the log level โ
โ --full-tb Show the full traceback when an error occurs โ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏHere's what prism agent apply does under the hood:
Parses the project's
prism_project.pyfile and identifies all paths containing project related data (e.g.,SYS_PATH_CONF,PROFILE_YML_PATH,TRIGGERS_YML_PATH, and so on).Securely builds the agent computing environment with all the data identified in step 1. For example:
For Docker agents, Prism constructs a transient build context and uses Docker's Python SDK to create an image.
For EC2 instances / EMR clusters (coming soon!), Prism uses the SSH protocol to securely copy all project data into the virtual machine.
Example
Here's what the output looks like in Terminal (using a Docker agent as an example):