You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/03/20 06:13:23 UTC

[PR] [SPARK-56095] Optimize `app` example Docker image size [spark-connect-swift]

dongjoon-hyun opened a new pull request, #328:
URL: https://github.com/apache/spark-connect-swift/pull/328

   ### What changes were proposed in this pull request?
   
   This PR aims to optimize `app` example Dockerfile: shrunk image size by **~33% (128MB -> 85.1MB)**
   
   ```diff
    IMAGE                                ID             DISK USAGE   CONTENT SIZE   EXTRA
   -apache/spark-connect-swift:app   fa24c1e88713        550MB          128MB
   +apache/spark-connect-swift:app   909c6511dbcc        373MB         85.1MB
   ```
   
   ### Why are the changes needed?
   
   By statically linking the Swift standard library into the binary, we no longer need the Swift runtime in the final Docker image. This allows us to use a lighter `ubuntu:24.04` base image instead of `swift:6.2-slim`, reducing the overall image size. This is consistent with the approach already used in the `pi` and `spark-sql` example Dockerfiles.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   This was tested by verifying consistency with the existing `Examples/pi/Dockerfile` and `Examples/spark-sql/Dockerfile` which already use the same pattern.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (claude-opus-4-6)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56095] Optimize `app` example Docker image size [spark-connect-swift]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #328:
URL: https://github.com/apache/spark-connect-swift/pull/328#issuecomment-4097657865

   Merged to main


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56095] Optimize `app` example Docker image size [spark-connect-swift]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #328:
URL: https://github.com/apache/spark-connect-swift/pull/328#issuecomment-4097655128

   Thank you, @viirya !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56095] Optimize `app` example Docker image size [spark-connect-swift]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #328: [SPARK-56095] Optimize `app` example Docker image size
URL: https://github.com/apache/spark-connect-swift/pull/328


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org