https://promptfoo.dev/ logo
Where is config.yaml for promptfoo located while r...
# ❓|questions
r
While running promptfoo in self hosted mode as per docs, how to specify my config.yaml
i did a env in the running container but have not found the path
/app # env NODE_VERSION=20.15.1 HOSTNAME=0.0.0.0 YARN_VERSION=1.22.22 SHLVL=1 PORT=3000 HOME=/root TERM=xterm PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NEXT_TELEMETRY_DISABLED=1 PWD=/app /app #
@ian @michaelmichaelmichael any suggestions please ? my end goal is to deploy promptfoo on kubernetes
i do see there is an option in the UI that allows to specify config but would like to provide the config using volume mount
m
@rbmsswe can you share more of your configuration? Are you doing this in podman-desktop? mounting a volume should be straight forward with
-v
but please send over your config and I'll try to reproduce it
r
@michaelmichaelmichael thanks for responding. i did use docker desktop because it requires buildx (assumption) . however i just pointed the path where the git repo of promptfoo is on my local.however i did not see a config.yaml
docker run -d --name promptfoo_container -p 3000:3000 -v /Users/me/docker/promptfoo:/root/.promptfoo promptfoo-ui-
the build command i used is the same as specified in docs
do we know the path on which promptfoo would be looking for config.yaml i can just specify that while running as docker container
@michaelmichaelmichael is this something we can discuss over a call ?
m
r
hey @michaelmichaelmichael do you have any availability today afternoon /evening to discuss the issue with using upload config.yaml
m
Hi @rbmsswe there's still a bit of engineering work to do to finish supporting this for you. I'm happy to chat again if useful to you but I need to plumb the baseDirectory from the UI into the partial unified config in order to get this fully working for you
i
as a temp workaround may be good to use an absolute path
r
@ian sure , please share an example file that would work with config here so i can adapt my config in same way
2 Views