<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running Browser Based Agentic Applications on Databricks in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152984#M5102</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/2230"&gt;@Lu_Wang_ENB_DBX&lt;/a&gt;&amp;nbsp;thanks for your reply with details. It helps. As I mentioned I tried with classic compute with image and then call the AI browser api from custom port&amp;nbsp; from notebook and saved the output in Lakebase....&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2026 05:24:16 GMT</pubDate>
    <dc:creator>abhijit007</dc:creator>
    <dc:date>2026-04-02T05:24:16Z</dc:date>
    <item>
      <title>Running Browser Based Agentic Applications on Databricks</title>
      <link>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152548#M5090</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;We are evaluating whether it is possible to host a browser‑based agentic application on Databricks.&lt;BR /&gt;Our application performs frontend UI automation using the browser-use Python library and also exposes FastAPI endpoints to drive a UI..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Application Overview-&lt;/STRONG&gt;&lt;BR /&gt;Uses browser-use, which is built on Playwright&lt;BR /&gt;Requires OS‑level browser dependencies&lt;BR /&gt;Runs headless Chrome via the Chrome DevTools Protocol (CDP)&lt;BR /&gt;Uses random, short‑lived local ports for browser communication&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Challenges Encountered-&lt;/STRONG&gt;&lt;BR /&gt;1. Databricks Serverless / Databricks Apps&lt;BR /&gt;Not supported for this use case&lt;BR /&gt;No access to OS‑level dependencies or browser binaries required by Playwright&lt;/P&gt;&lt;P&gt;2. Legacy Compute with Init Scripts&lt;BR /&gt;Browsers (e.g., Chrome) can be installed via init scripts&lt;BR /&gt;However, browser-use fails to connect to headless Chrome&lt;BR /&gt;Possible causes include:&lt;BR /&gt;Restrictions on dynamic or ephemeral localhost ports&lt;BR /&gt;Networking limitations&lt;BR /&gt;Constraints imposed by the Databricks runtime or base image&lt;/P&gt;&lt;P&gt;3. Legacy Compute with Custom Docker Images&lt;BR /&gt;Ideally, we would like to use a custom Docker image (e.g., python:3.11 s-l-i-m) with all required browser dependencies preinstalled&lt;BR /&gt;Databricks currently does not allow using non‑Databricks Runtime base images for compute&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question-&lt;/STRONG&gt;&lt;BR /&gt;Is there any supported way on Databricks to:&lt;/P&gt;&lt;P&gt;Run custom Docker images that are not based on the Databricks Runtime, or&lt;BR /&gt;Use another Databricks‑supported service or pattern that would allow running browser‑based automation workloads (Playwright or headless Chrome or CDP‑based tools)?&lt;/P&gt;&lt;P&gt;Any guidance and help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 17:10:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152548#M5090</guid>
      <dc:creator>abhijit007</dc:creator>
      <dc:date>2026-03-30T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running Browser Based Agentic Applications on Databricks</title>
      <link>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152778#M5095</link>
      <description>&lt;P&gt;TLDR: &lt;STRONG&gt;Databricks Apps/serverless won’t support this pattern; classic compute with Databricks Container Services is your only real option on Databricks, and even that has trade‑offs. For serious browser automation, run it off‑platform and integrate with Databricks by API.&lt;/STRONG&gt;&lt;/P&gt;
&lt;H3&gt;1. Databricks Apps / Serverless&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Apps run in a locked‑down serverless container:
&lt;UL&gt;
&lt;LI&gt;No root, &lt;STRONG&gt;no &lt;CODE&gt;apt-get&lt;/CODE&gt;/&lt;CODE&gt;yum&lt;/CODE&gt;/&lt;CODE&gt;apk&lt;/CODE&gt;&lt;/STRONG&gt;, no system‑level packages or browsers.&lt;/LI&gt;
&lt;LI&gt;App must bind only to &lt;CODE&gt;0.0.0.0:&amp;lt;DATABRICKS_APP_PORT&amp;gt;&lt;/CODE&gt;; the reverse proxy terminates TLS and forwards traffic.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;That makes &lt;STRONG&gt;Playwright/headless Chrome/CDP inside an App essentially unsupported&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;2. Classic compute with &lt;EM&gt;true&lt;/EM&gt; custom Docker images&lt;/H3&gt;
&lt;P&gt;Yes, but with constraints:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use &lt;STRONG&gt;Databricks Container Services&lt;/STRONG&gt; on classic compute to specify a Docker image for the cluster.&lt;/LI&gt;
&lt;LI&gt;The image &lt;STRONG&gt;does not have to be based on a Databricks Runtime image&lt;/STRONG&gt;; you can build it “from scratch” (e.g. starting from &lt;CODE&gt;python:3.11-slim&lt;/CODE&gt;) as long as you:
&lt;UL&gt;
&lt;LI&gt;Run (typically Ubuntu) Linux and include required system tools (JDK 8u191, bash, coreutils, procps, sudo, etc.).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;At cluster launch, Databricks:
&lt;UL&gt;
&lt;LI&gt;Pulls your image, starts a container, then &lt;STRONG&gt;copies Databricks Runtime code into it&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;In that container you can pre‑install Chrome + Playwright/browser‑use and use &lt;STRONG&gt;localhost ephemeral ports&lt;/STRONG&gt; for CDP; there is no documented block on local ephemeral ports for classic compute.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Caveats:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Container Services is not supported in some scenarios (for example certain access modes, ML runtimes, FGAC on dedicated compute).&lt;/LI&gt;
&lt;LI&gt;You own all OS‑level hardening and must thoroughly test your image.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;3. Recommendation&lt;/H3&gt;
&lt;P&gt;Given how specialized browser automation is, the most robust pattern is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Run Playwright/headless Chrome in your own infra&lt;/STRONG&gt; (Kubernetes, ECS, VMs) where you fully control the OS and networking.&lt;/LI&gt;
&lt;LI&gt;Use Databricks purely for &lt;STRONG&gt;data/AI&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Call &lt;STRONG&gt;Model Serving / foundation model APIs&lt;/STRONG&gt; for LLMs.&lt;/LI&gt;
&lt;LI&gt;Use &lt;STRONG&gt;Jobs / SQL / Delta&lt;/STRONG&gt; for data work.&lt;/LI&gt;
&lt;LI&gt;Optionally front this with a &lt;STRONG&gt;Databricks App or MCP server&lt;/STRONG&gt; that calls out to your browser‑automation service.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Summary:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Supported on Databricks?&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;Apps/serverless&lt;/EM&gt;: effectively &lt;STRONG&gt;no&lt;/STRONG&gt; for this use case.&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Classic compute&lt;/EM&gt;: &lt;STRONG&gt;yes, via Databricks Container Services with a custom Docker image&lt;/STRONG&gt; that you harden and that still hosts Databricks Runtime.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Best practice&lt;/STRONG&gt;: treat browser automation as an external service and integrate with Databricks over APIs.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 31 Mar 2026 17:26:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152778#M5095</guid>
      <dc:creator>Lu_Wang_ENB_DBX</dc:creator>
      <dc:date>2026-03-31T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running Browser Based Agentic Applications on Databricks</title>
      <link>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152984#M5102</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/2230"&gt;@Lu_Wang_ENB_DBX&lt;/a&gt;&amp;nbsp;thanks for your reply with details. It helps. As I mentioned I tried with classic compute with image and then call the AI browser api from custom port&amp;nbsp; from notebook and saved the output in Lakebase....&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 05:24:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/running-browser-based-agentic-applications-on-databricks/m-p/152984#M5102</guid>
      <dc:creator>abhijit007</dc:creator>
      <dc:date>2026-04-02T05:24:16Z</dc:date>
    </item>
  </channel>
</rss>

