Files
floci/docs
Priamo Germosen 931b2d26a7 feat(emr-serverless): run a job run in its application's custom image (#6975)
In the docker runner mode an application's imageConfiguration, and a
worker type's, was stored and returned, but every run started from the
release's public image. So a job whose libraries are baked into its own
image, the user guide's "Customizing an EMR Serverless image", could not
run. Now a run starts from the application's custom image:

- the Driver worker type's imageConfiguration, else the application's,
  which "EMR Serverless applies ... to all worker types". Local mode
  runs the executors in the driver's container, so an Executor image is
  not used;
- an <account>.dkr.ecr.<region>.amazonaws.com URI leads to Floci's ECR,
  as a Lambda function's or an ECS task's image does, and the
  repositoryUri Floci's ECR hands out works too;
- the image is pulled for every run, as an ECS task's is, so a tag
  pushed again is what the next run gets ("New workloads submitted after
  the update automatically will use the new image"), and the driver
  starts from the image id that pull resolved. When the pull fails, the
  image the Docker daemon has runs; without one the run is FAILED.

SparkJobRunner.Job carries the custom image beside the template, which
classic EMR's steps leave null.

The image configurations, the application's and each worker type's,
are checked as the user guide and the model describe them, in Floci's
own wording as no source gives AWS's:

- CreateApplication refuses one without imageUri, "This field is
  required when you create a new application";
- CreateApplication and UpdateApplication refuse an image whose ECR
  repository, AWS-shaped or a repositoryUri from Floci's ECR, is in
  another Region: "The Amazon ECR repository must be in the same AWS
  Region that you use to launch EMR Serverless applications";
- UpdateApplication with one that leaves imageUri out removes it: "If
  you leave this field blank in an update, Amazon EMR will remove the
  image configuration."

EcrRegistryManager.imageRegion reads the Region from either URI form.
Floci does not check imageUri against the model's pattern, which would
refuse the repository URIs its own ECR hands out, nor the image's
release or size, and reports no resolvedImageDigest; the service doc
lists these.
2026-10-30 07:23:11 -05:00
..
2026-03-15 17:43:56 -05:00