CLI client tool for deploying workloads to Racetrack
Project description
Racetrack client context
racetrack-client
is a CLI client tool for deploying workloads to Racetrack.
Racetrack system allows to deploy jobs in a one step. It transforms your code to in-operation workloads, e.g. Kubernetes workloads. You write some code according to a set of coventions, you include the manifest file which explains the code, and you submit it to Racetrack. A short while after, the service calling your code is in operation.
Quickstart
- Install
racetrack
client:pip3 install racetrack-client
- Configure access token to your git repository:
racetrack config credentials set REPO_URL USERNAME TOKEN
- Deploy your job to Racetrack:
racetrack deploy . https://racetrack.platform.example.com/lifecycle
- You will see the URL of your deployed job in the output.
Installation
Install racetrack-client using pip:
pip3 install racetrack-client
Python 3.8+ is required. So if you have any troubles, try with:
sudo apt install python3.8 python3.8-dev python3.8-venv
python3.8 -m pip install racetrack-client
This will install racetrack
CLI tool. Verify installation by running racetrack
.
Usage
Run racetrack --help
to see usage.
Deploying
To deploy a job, just run in the place where fatman.yaml
is located:
racetrack deploy . https://racetrack.platform.example.com/lifecycle
racetrack deploy [WORKDIR] [RACETRACK_URL]
has 2 optional arguments:
WORKDIR
- a place where thefatman.yaml
is, by default it's current directoryRACETRACK_URL
- URL address to Racetrack server, where a job should be deployed. If not given, it will be deployed to a URL configured in a local client config, by default it's set to a local cluster athttp://localhost:7002
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for racetrack_client-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 404a8bf0d4af0202692d1fac1a370064583cd29fc667c55f477113adc1b00fa4 |
|
MD5 | 7b87404ddbb165406f3b1836065f56d7 |
|
BLAKE2b-256 | 6c527eade2b2f56b8d3168fe0004cecabe843aaefc76c2e485b71e6eca7e5cec |