lablup / backend.ai

Backend.AI is a streamlined, container-based computing cluster platform that hosts popular computing/ML frameworks and diverse programming languages, with pluggable heterogeneous accelerator support including CUDA GPU, ROCm GPU, TPU, IPU and other NPUs.
https://www.backend.ai
GNU Lesser General Public License v3.0
509 stars 151 forks source link

Post-install script for easier setup & upgrades #116

Open achimnol opened 4 years ago

achimnol commented 4 years ago

Let's add a post-install script to our manager which performs:

This must be executed after all of the following commands:

Currently there is no simple way to add pre/post-install scripts in Python wheels. (Adding codes around setup() or setting cmdclass does not seem to work for all cases above...) We need to figure out how to do this first.

┆Issue is synchronized with this Asana task by Unito

achimnol commented 4 years ago

Or, we could execute the post-install script whenever the manager server or the CLI starts. (For the CLI, we could ask the user to confirm the upgrade operation. If the server is running already, we also should warn the users to restart it.)