lablup / lablup/backend.ai

Add Rover CLI Installation and Apollo License Acceptance to TUI Installer

Open
#8,318 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Motivation

- TUI installer requires Rover CLI to generate `supergraph.graphql` for Apollo GraphQL federation
- Rover CLI installation was previously manual, requiring additional setup steps
- Apollo ELv2 license acceptance needs to be automated for non-interactive installations

## Required Features

- **Rover CLI Detection**: Check if Rover is already installed in `~/.rover/bin` or available in system PATH
- **Automated Rover Installation**: Install Rover CLI via official curl script if not present
- **Bashrc Configuration**:
- Add Rover bin path to PATH (`export PATH="$HOME/.rover/bin:$PATH"`)
- Add Apollo ELv2 license acceptance (`export APOLLO_ELV2_LICENSE=accept`)
- Only add entries if not already present in `.bashrc`
- **Environment Setup**: Set `APOLLO_ELV2_LICENSE=accept` in process environment for supergraph generation

## Impact

- Eliminates manual Rover CLI installation steps
- Enables automated supergraph generation during TUI installation
- Ensures Apollo license is accepted for non-interactive deployments
- Persists Rover configuration in `.bashrc` for future sessions

JIRA Issue: BA-4077

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.