portainer / compose-unpacker

A tool used to deploy Compose stacks from Git on remote environments
8 stars 7 forks source link

Unable to deploy stack when using together with stack.env #26

Open theksk23 opened 9 months ago

theksk23 commented 9 months ago

If you try using relative pathes from git together with environment-variables from stack.env you end up with the following:

an error occurred while running unpacker container with exit code 255: open /mnt/portainer-mounts/foo/bar/portainer-compose-unpacker/stacks/bar/bar/stack.env: no such file or directory 

The unpacker seems to take docker-compose.yml env_file: stack.env and adds it to its list-of-files to verify or so? It does not exist of course, so we run into a failure deploying the stack

Adding the file to git will end up overwriting the values set in Portainer UI.