Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline install for Databricks labs project #1646

Open
JCZuurmond opened this issue Aug 1, 2024 · 0 comments
Open

Offline install for Databricks labs project #1646

JCZuurmond opened this issue Aug 1, 2024 · 0 comments
Labels
Enhancement New feature or request labs issues related to `labs` command group (assign to @nfx)

Comments

@JCZuurmond
Copy link
Contributor

Description

Support an offline install for a Databricks labs project: databricks labs install <project name>. Instead of downloading the project from Github, the install is performed on the locally available project in ~/.databricks/labs/<project name>.

This capability allows distributing a Databricks labs project via a different route besides downloading it from Github using this cli, which is helpful for user performing installations in environments with network restrictions (Github being blocked).

This user flow would roughly look like:

  1. Install a Databricks labs project in a location WITH Github access: databricks labs install <project name>
  2. Archive the Databricks labs project: zip -r <project name>.zip ~/.databricks/labs/<project name>/
  3. Move archive and cli executable to the machine WITHOUT Github access: usb, floppy disk, who knows
  4. Unzip archive into ~/.databricks/labs and put cli executable on $PATH
  5. Offline install Databricks labs project: databricks labs install <project name>

Note: the Python environment might need manual fixing on the machine WITHOUT Github access ~/.databricks/labs/<project name>/state/venv/bin. Recommendation is to use the same Python version on both machines.

Implementation

Options:

  1. Try to download the Databricks labs project from Github, report if it fails to download the latest project, continue with the installation process as normal, fail if the project does not exist locally
  2. Add --offline flag, that skips downloading the Github project and installs the project from the local files.
@JCZuurmond JCZuurmond added the CLI CLI related issues label Aug 1, 2024
@andrewnester andrewnester added labs issues related to `labs` command group (assign to @nfx) and removed CLI CLI related issues labels Aug 1, 2024
@pietern pietern added the Enhancement New feature or request label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request labs issues related to `labs` command group (assign to @nfx)
Projects
None yet
Development

No branches or pull requests

3 participants