Workspace-level package repositories for Databricks Apps
Workspace admins can configure default Python and npm package repositories for Databricks Apps.
O que mudou
With this new feature, workspace admins can configure default Python and npm package repositories for Databricks Apps, allowing apps to inherit the configuration automatically. Developers can still override these settings at the app level if needed.
Use cases
Imagine you have multiple Databricks Apps that need to install private packages from a corporate registry without requiring every developer to manually configure URLs.
- Centralize default Python and npm package repositories at the workspace level.
- Install packages from internal sources without explicitly defining URLs in the code.
- Securely store credentials and repository URLs using Databricks secrets.
How to use
You can configure the repositories using the Databricks CLI to create the secret scope and add the predefined keys.
databricks secrets create-scope databricks-package-management
databricks secrets put-acl databricks-package-management admins MANAGE
databricks secrets put-acl databricks-package-management users READ
What happens in this code:
- Creates a secret scope named databricks-package-management.
- Grants management permission to administrators.
- Grants read permission to all workspace users.
To add the npm configuration for Databricks Apps, use the secret put command with the corresponding key:
databricks secrets put-secret --json '{"scope": "databricks-package-management", "key": "npm-rc", "string_value":"registry=https://npm.example.com/\n//npm.example.com/:_authToken=<token>\n"}'
What happens in this code:
- Inserts the complete .npmrc file content into the predefined scope.
- Associates the npm-rc key exclusively for Databricks Apps.
- Enables apps in the workspace to use the configured registry during the build process.
Limitations and requirements
- Generally available (GA) for Databricks Apps.
- Secret changes for Databricks Apps are applied the next time the app is built and deployed.
- Values specified directly in code or in an app's app.yaml file take precedence over workspace defaults.
- databricks apps
- workspace settings
- secrets
- npm
- python
Workspace-level package repositories for Databricks Apps are generally available
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis - DatabricksBeta
Databricks AI Runtime SDK substitui o pacote serverless_gpu
O Databricks AI Runtime SDK substitui o pacote obsoleto serverless_gpu nas versões de ambiente GPU 6 e superiores, trazendo novas APIs para treino distribuído.
ai runtime · distributed training