Skip to main content

Command-line client for the Shipyard system

Project description

:computer: CLI client for the Shipyard system

codecov

This command-line application lets you interact easily with a Shipyard server instance. For more information about the Shipyard system, please check the server's repository.

Installation

You can install this tool by simply running:

pip install shipyard-cli

Usage

By default, the application looks for the server on localhost:8000. If the server is running on another host or port, you need to change the configuration by running:

shipyard config server_url 0.0.0.0
shipyard config server_port 8080

Once the correct values are set, you can begin managing your nodes, tasks and deployments using the various commands. For example, to list all the nodes present in your system you can run:

shipyard node ls

If you only want to see the nodes that are currently running tasks, you need to use the --active flag.

shipyard node ls --active

Tasks can be added to the system by running:

shipyard task add TestName 1000 1000 1000 /path/to/tarfile

# Or, if you need to specify some devices
shipyard task add --device /dev/foo --device /dev/bar TestName 1000 1000 1000 /path/to/tarfile

Deploying tasks to nodes and removing them is as simple as using the crane command.

# Names can be used instead of IDs too
shipyard crane deploy node_id task_id
shipyard crane rm node_id task_id

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shipyard-cli-0.1.0.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

shipyard_cli-0.1.0-py3-none-any.whl (17.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page