build.py
setting docker build args for secrets even when build-secret flag is not present
#7992
Labels
build
Issues pertaining to builds
Description
While trying to build tritonserver with the
build.py
script, I am getting this error:After looking into it, it looks like #7983 that was merged recently added a new build-secret flag
it is checked in main here
The values are referenced to make a docker build command here.
The issue here is that is that
secrets = dict(getattr(FLAGS, "build_secret", []))
will never setsecrets
toNone
sincegetattr
defaults to[]
anddict([])
returns an empty dictionary, which is notNone
. Thereforerequirements
,vllm_index_url
, andpytorch_triton_url
will be set to""
.Furthermore,
secrets != ""
will always be true sincesecrets
is not a string, so these flags will always be put into docker build command regardless of whether they're set, resulting in the error.Triton Information
What version of Triton are you using?
2.55.0dev
Are you using the Triton container or did you build it yourself?
I am attempting to build the container myself using
build.py
.To Reproduce
I am running the following command to build from inside the server repo:
Expected behavior
I expected the build to succeed.
The text was updated successfully, but these errors were encountered: