Skip to main content

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

  1. Install racetrack client: pip3 install racetrack-client
  2. Configure access token to your git repository: racetrack config credentials set REPO_URL USERNAME TOKEN
  3. Deploy your job to Racetrack: racetrack deploy . https://racetrack.platform.example.com/lifecycle
  4. 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 the fatman.yaml is, by default it's current directory
  • RACETRACK_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 at http://localhost:7002.

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

racetrack-client-2.2.0.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

racetrack_client-2.2.0-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file racetrack-client-2.2.0.tar.gz.

File metadata

  • Download URL: racetrack-client-2.2.0.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for racetrack-client-2.2.0.tar.gz
Algorithm Hash digest
SHA256 c36c09697ffc9ec9184186ae3164e0963c5cee2a18df7e40f6efdc0d327c69f7
MD5 02127b516104fbd2beda8a36c3147d2b
BLAKE2b-256 8050633cd1aa2f676c997a2eb732b45e84b7a01305dfea02a9812fc52c7c529a

See more details on using hashes here.

File details

Details for the file racetrack_client-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: racetrack_client-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for racetrack_client-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c552f2a869e409524a7590bc8700a26aba494db9f4fb16310b0b2f86990f74ab
MD5 aab72c472422222c740d9a3d5726854b
BLAKE2b-256 5916f32a0cadbb31547b816c763fdd63cfd25a02e0995a0159fbe6b61abb4b97

See more details on using hashes here.

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