ExaWorks / SDK

ExaWorks SDK
11 stars 12 forks source link

Parameterize docker images' `FROM` command #27

Closed SteVwonder closed 3 years ago

SteVwonder commented 3 years ago

This will enable use to chain/compose the component images into arbitrary ways. I think it will look like:

ARG base_image=exaworks/sdk-base
FROM $base_image

The first use-case would be our existing one: creating an image with a single component. Due to the default argument value, the existing build command will continue to work as-is: docker build -t rp docker/rp

The second use-case would be as for pair-wise integrations (two components) or a big monolithic image with all of the components. We could achieve this by "chaining" the images (e.g., sdk-base -> swift-t -> parsl -> rp -> flux).