Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileSink not working when running with a directory of files #5

Closed
JimPaine opened this issue Mar 9, 2021 · 0 comments · Fixed by #6
Closed

FileSink not working when running with a directory of files #5

JimPaine opened this issue Mar 9, 2021 · 0 comments · Fixed by #6
Assignees
Labels
bug Something isn't working

Comments

@JimPaine
Copy link
Member

JimPaine commented Mar 9, 2021

FileSink is injected once per execution and is reused across all runs and templates, this means that when you run from a directory the sinker that is created is overridden and only the final one to be created actually works. So with the example below if there were 5 templates in the directory only the last template to be processed would contains logs and the rest would be empty files.

docker run \
  -v ~/templates:/app/templates \
  -v ~/taxonomies:/app/taxonomies  \
  -v ~/logs:/app/logs \
  -e lignator_template="templates \
  -e lignator_no_banner="true" \
  -e lignator_output="/app/logs" \
  -e lignator_logs="50000" \
  -e lignator_clean="true" \
  -e lignator_infinite="true" \
  lignator:0.7.3
JimPaine added a commit that referenced this issue Mar 9, 2021
JimPaine added a commit that referenced this issue Mar 10, 2021
@JimPaine JimPaine added the bug Something isn't working label Apr 9, 2021
@JimPaine JimPaine self-assigned this Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant