Temporary files in a different directory #617
Unanswered
PiTiLeZarD
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I haven't read the go code so apologies if this issue sprouts from my lack of understanding.
I use docker-gen in production on a docker swarm reverse proxy situation. It's worked great over 2/3 years I'm doing this. Recently I've been having an issue. All nodes in the swarm share a folder which is on azure shared blob. They all know of each other's configuration and a script combines all of these configs into one using crossplane, so ultimately they all have the same config and requests can hit any node and return something from any node.
Enough bragging, I reckon sometimes docker-gen generates a temporary file docker-gen.XXX.conf and deletes it real quick after that, but due to docker shares, and samba shares probably all adding their healthy dose of lag, maybe that file sticks around and messes up all the merging business, sites go down and I end up working on weekends and we don't want that! lol Not sure if maybe the file ends up not being deleted at all? I blame docker/samba but I'm not entirely sure.
So I was wondering if there's a way I can still point docker-gen at a folder but tell docker-gen to use /tmp for its internal workings?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions