Running an application with a custom docker image

For this first method we are going to submit the application using the rest api. In order to do that we are going to run this request in a terminal:

curl -k -X POST \
'<your cluster id>/app?accountId=<your accountId>' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ...' \
-d '{ 
     "jobId": "spark-pi",
     "configTemplateId": "ocean-workshop",
          "type": "Python", 
          "sparkVersion": "3.2.0",
          "mainApplicationFile": "local:///opt/application/",
          "image": <replace-with-the-image-that-we-pushed-to-ecr>

this way we specified the template id that we want and we change with the configOverride