<?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: Private Python Package in Serverless Job in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/77172#M3228</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&amp;nbsp;Can you guide, how can I&amp;nbsp;&lt;SPAN&gt;achieve your goal of installing a private package hosted on Gitlab Python Package Registry?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 16:58:58 GMT</pubDate>
    <dc:creator>vinitkhandelwal</dc:creator>
    <dc:date>2024-07-08T16:58:58Z</dc:date>
    <item>
      <title>Private Python Package in Serverless Job</title>
      <link>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/76646#M3201</link>
      <description>&lt;P&gt;I am trying to create a Databricks Job using Serverless Compute. I am using wheel file to run the Python Job.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-03 at 8.50.30 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9179i6905D33B5257CDC7/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-07-03 at 8.50.30 PM.png" alt="Screenshot 2024-07-03 at 8.50.30 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The wheel file has setup.py file using which all dependencies are installed. One of the package dependency is a private package hosted on Gitlab Python Package Registry.&amp;nbsp; Now this package installation needs some access details to be provided to the compute. Earlier when I was not using Serverless compute, I was able to add init_script to compute and that would run before setup.py, thereby giving access to private registry to install the private package.&lt;/P&gt;&lt;P&gt;The init_script added registry login details to /etc/pip.conf file as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash
if [[ $GITLAB_TOKEN ]]; then
use $GITLAB_TOKEN 
fi
echo $PYPI_TOKEN
printf "[global]\n" &amp;gt; /etc/pip.conf
printf "extra-index-url =\n" &amp;gt;&amp;gt; /etc/pip.conf
printf "\thttps://__token__:$GITLAB_TOKEN@gitlab.com/api/v4/projects/12345678/packages/pypi/simple\n" &amp;gt;&amp;gt; /etc/pip.conf&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But now with Serverless, there is no option to add init scripts, so how do I allow the compute to be able to install private package?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:34:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/76646#M3201</guid>
      <dc:creator>vinitkhandelwal</dc:creator>
      <dc:date>2024-07-03T15:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Private Python Package in Serverless Job</title>
      <link>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/77172#M3228</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&amp;nbsp;Can you guide, how can I&amp;nbsp;&lt;SPAN&gt;achieve your goal of installing a private package hosted on Gitlab Python Package Registry?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:58:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/77172#M3228</guid>
      <dc:creator>vinitkhandelwal</dc:creator>
      <dc:date>2024-07-08T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Private Python Package in Serverless Job</title>
      <link>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/93091#M4389</link>
      <description>&lt;P&gt;With a pre-signed URL you mean that I need to expose my Gitlab token in a the index URL? Is there a way inject the Gitlab token without exposing it? I haven't found one thus far.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 11:53:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/private-python-package-in-serverless-job/m-p/93091#M4389</guid>
      <dc:creator>djhs</dc:creator>
      <dc:date>2024-10-08T11:53:00Z</dc:date>
    </item>
  </channel>
</rss>

