Open afscrome opened 5 months ago
cc @mitchdenny
@afscrome we just got some updated capabilities from DCP to support adding labels to containers so it looks like we might be able to do this. What kind of labels would you find useful.
We'd also accept a PR for this if you are interested!
Hi @mitchdenny, are there any documents about DCP? I want to take this issue, but I can not find any docs about DCP to start this.
@Alirexaa DCP is closed source at this point in time. However the labels properties are exposed here:
If you were to update the ApplicationExecutor.cs
to populate labels they should show up in Docker.
Follow on from https://github.com/dotnet/aspire/issues/4346#issuecomment-2169204891.
When building images with
FromDockerfile
, we should consider adding some default labels to the image.This could include open container labels, similar to those the Dotnet SDK , as well as some aspire specific labels (e.g. project name, resource name, aspire version). The aspire specific labels should be consistent with #4425.