Description
Build the code in this folder, push it, and make it live in an environment. Run it after each change to the code. Deploy builds the image from the folder of the nearest reactor.yaml, records it on the project, and writes the next revision of the environment in one step. The build runs on the Reactor platform, so no docker daemon is needed;--build-local builds
with the local docker daemon and pushes the image instead.
Deploy needs a reactor.yaml in this folder or a parent: it names the
project and the build context. To change an environment from any other
folder, or with no build, such as to an image that is already pushed,
other weights or one setting, use reactor environment update.
The settings flags apply in the same write. --weights takes a tag, a
digest in its short or full form, a local path such as ./weights, which
the deploy pushes first, or hf://<org>/<repo>[@<revision>]; “none” clears
the weights. A setting that the command does not name keeps its value. The
deploy waits for the rollout unless --no-wait is set. A deploy that changes
nothing returns at once: it does not wait for a rollout that is already in progress.
The first deploy of an environment takes the accelerator of the model, or
CPU for a CPU model, unless --gpu names one. It runs 1 instance unless
--desired names a count. --prefer-regions and --require-regions place that
total, as reactor scale does, in the same revision. A change to the image,
the weights, the GPU or a variable replaces the running instances.
Examples:
Options
Global options
See also
- reactor - The CLI for the Reactor platform