wave
wave copied to clipboard
Support adding layers and context to container build
This PR will do the following:
- Fix posix permission issue in singulairty build when untar layers
- Fix posix permission issue when untar context
I think this can be simplified without handling in a special case the saving of build context and layers for singularity
https://github.com/seqeralabs/wave/blob/347182472ae26716267d442214b9282301a4a760/src/main/groovy/io/seqera/wave/service/builder/impl/ContainerBuildServiceImpl.groovy#L272-L279
In both cases, Wave should only take case of saving the tar in the build work dir (s3 path). then mounting that path in the content. Finally Dockerfile add it/them to the container using one or more ADD, instead singularity using a %post script to untar and copy in the right directory
Tested singularity in dev: https://wave.dev-seqera.io/view/builds/bd-f3d0dbf41f09b917_1
tested docker with context https://wave.dev-seqera.io/view/containers/5f81208b7fae
tested singulairty with context https://wave.dev-seqera.io/view/builds/bd-553d7de13471d357_1