-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom labels in build request with conda and spack packges #422
Add custom labels in build request with conda and spack packges #422
Conversation
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
kaniko supports this functionality, so i have added directly in its command |
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
I was assuming the labels to be added to the Containerfile. My understanding this approach only works for kaniko based builds. What about Singularity? |
I wasn't aware about singularity, I will add labels in singularity builds also |
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
dockerfile tested with new changes:
|
tested using singularity
|
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
…ntainers-with-conda-and-spack-packges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments - thank you Munish
src/main/groovy/io/seqera/wave/service/builder/ContainerBuildServiceImpl.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/io/seqera/wave/service/builder/ContainerBuildServiceImpl.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/io/seqera/wave/service/builder/BuildRequest.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/io/seqera/wave/service/builder/ContainerBuildServiceImpl.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/io/seqera/wave/service/builder/ContainerBuildServiceImpl.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/io/seqera/wave/controller/ContainerTokenController.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/io/seqera/wave/service/builder/ContainerBuildServiceImpl.groovy
Outdated
Show resolved
Hide resolved
…labels-when-building-containers-with-conda-and-spack-packges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@munishchouhan @pditommaso by further inspection, I actually think the implementation here in the Wave service could be made to closely match that for other properties in Wave API's ContainerConfig
, such as env
and entrypoint
. env
is of particularly good inspiration, considering it is modelled as a List<String>
, same as my proposed edit in Libseqera for labels
.
I suggest you have a look at how containerConfig.env
is handled across the Wave codebase, and go after that for the labels
.
What do you think?
…ntainers-with-conda-and-spack-packges
Docker container config requires labels as Map, So now it is getting built-in container augmentation. |
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
CI requires merge and release on Libseqera side: seqeralabs/libseqera#18 |
…labels-when-building-containers-with-conda-and-spack-packges
Closing as Spack support will not be maintained anymore |
This PR is not related to Spack specifically, this is to add labels in the wave generated containers, so its still valid for conda |
I think we need to rethink the general strategy for labels. So far, it has been implemented adding labels to the dockerfile, however this will create a different container checksum when adding a label. Ideally, metadata changes shouldn't alter the container checksum. should be explored the ability to propagate tags via Buildkit APIs |
This PR will add labels in the build request, which will be added in dockerfile for conda and spack packges