cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Questions on using Docker image with Databricks Container Service

Anonymous
Not applicable

Specifically, we have in mind:

* Create a Databricks job for testing API changes (the API library is built in a custom Jar file)

* When we want to test an API change, build a Docker image with the relevant changes in a Jar file

* Update the job configuration to use the new Docker image

* Trigger the job

My questions about this are:

  1. Where do we put custom Jar files when building the Docker image? I don’t see anything about it in the documentation (https://docs.databricks.com/clusters/custom-containers.html)
  2. How do we update the job configuration so that the job’s cluster will be built with this new Docker image, and how long do we expect this re-configuring process to take?
1 ACCEPTED SOLUTION

Accepted Solutions

sajith_appukutt
Honored Contributor II

>Where do we put custom Jar files when building the Docker image?

/databricks/jars

>How do we update the job configuration so that the job’s cluster will be built with this new Docker image, and how long do we expect this re-configuring process to take?

You could update the jobs with the new docker image by calling the update jobs api and specify

"docker_image": {
    "url": "databricksruntime/standard:latest",
    "basic_auth": {
      "username": "<docker-registry-username>",
      "password": "<docker-registry-password>"
    }
  }

under job settings

View solution in original post

1 REPLY 1

sajith_appukutt
Honored Contributor II

>Where do we put custom Jar files when building the Docker image?

/databricks/jars

>How do we update the job configuration so that the job’s cluster will be built with this new Docker image, and how long do we expect this re-configuring process to take?

You could update the jobs with the new docker image by calling the update jobs api and specify

"docker_image": {
    "url": "databricksruntime/standard:latest",
    "basic_auth": {
      "username": "<docker-registry-username>",
      "password": "<docker-registry-password>"
    }
  }

under job settings

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group