-
Notifications
You must be signed in to change notification settings - Fork 56
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
Preparing docker image for v6 #208
Conversation
ildyria
commented
Sep 30, 2024
•
edited
Loading
edited
- make the temporary storage folders configurable/linkable.
Dockerfile
Outdated
@@ -102,7 +105,7 @@ COPY --from=static_builder --chown=www-data:www-data /app/public /var/www/html/L | |||
COPY default.conf /etc/nginx/nginx.conf | |||
|
|||
EXPOSE 80 | |||
VOLUME /conf /uploads /sym /logs | |||
VOLUME /conf /uploads /sym /logs /image-tmp /image-jobs /extract-jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels excessive as they should all be temporary, but 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They probably need permissions checks too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point on permission checks.
yeah I know it feels excessive, but that way you may run your docker base container on a small instance and have some scratch pad for the tmp files. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed fe34506
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I know it feels excessive, but that way you may run your docker base container on a small instance and have some scratch pad for the tmp files. :)
But do you need three separate ones? e.g. it could be /lychee-tmp/image-tmp
etc? That would also save remapping if we add more or rename them again.
It's good enough to merge, just feels a bit much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But do you need three separate ones? e.g. it could be
/lychee-tmp/image-tmp
etc? That would also save remapping if we add more or rename them again.It's good enough to merge, just feels a bit much.
Ohhh, good point, I like it!
I will fix that in v6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could just cheat it here, but if there's a good place in the v6 too, sure :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could combine the tmp volumes, but this works 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One query, otherwise LGTM
Co-authored-by: Martin Stone <[email protected]>