Skip to content

Temporary files in a different directory #550

@PiTiLeZarD

Description

@PiTiLeZarD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions