TheRacetrack / racetrack

An opinionated framework for deploying, managing, and serving application workloads
https://theracetrack.github.io/racetrack/
Apache License 2.0
28 stars 5 forks source link

Add CLI and admin web interface options to download plugins #466

Closed anders314159 closed 1 month ago

anders314159 commented 1 month ago

Tested with racetrack running in docker.

To setup tests: cd racetrack_client && pip install -e . && sleep 3 && racetrack plugin install github.com/TheRacetrack/plugin-docker-infrastructure && racetrack plugin install github.com/TheRacetrack/plugin-python-job-type==2.13.0 && mkdir temp_folder

To download a plugin - both name and version required:

racetrack plugin download python3-job-type 2.13.0

To test if we are actually downloading the right thing

racetrack plugin download python3-job-type 2.13.0 --out-dir=temp_folder && cd temp_folder
wget https://github.com/TheRacetrack/plugin-python-job-type/releases/download/2.13.0/python3-job-type-2.13.0.zip -O from_github.zip
sha256sum python3-job-type-2.13.0.zip
sha256sum from_github.zip
anders314159 commented 1 month ago

To test the download button, upload a plugin, then click the download button on /dashboard/ui/administration

iszulcdeepsense commented 1 month ago

@anders314159 Please include a short note in docs/CHANGELOG.md about what you've made