spr-networks / super

📡 SPR: Open Source, secure, user friendly and fast wifi routers for your home. One wifi password per device. Ad Blocking & Privacy Blocklists. Policy Based Network Access
https://www.supernetworks.org/
BSD 3-Clause "New" or "Revised" License
198 stars 13 forks source link

the joys of docker buildkit -- context #300

Closed lts-rad closed 8 months ago

lts-rad commented 8 months ago

while developing a plugin it was observed that buildkit broke the concept of context on a multiline compose file

for ex:

docker compose -f $PWD/docker-compose-virt.yml -f  plugins/user/spr-tailscale/docker-compose.yml build

if the 2nd compose file has a context of '.', insteado f using plugins/user/spr-tailscale/ it will attempt to use the CWD.

To address this, we can update the plugin references to use a ${BUILDCTX} environment variable that superd will know to set.

lts-rad commented 8 months ago

This affected VIRTUAL_MODE containers. fixed now.