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

Preparing docker image for v6 #208

Merged
merged 10 commits into from
Sep 30, 2024
Merged

Preparing docker image for v6 #208

merged 10 commits into from
Sep 30, 2024

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Sep 30, 2024

  • make the temporary storage folders configurable/linkable.

@ildyria ildyria requested a review from d7415 September 30, 2024 10:05
Dockerfile Outdated Show resolved Hide resolved
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
Copy link
Contributor

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 🤷‍♂️

Copy link
Contributor

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

Copy link
Member Author

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. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed fe34506

Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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 :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ildyria ildyria requested a review from d7415 September 30, 2024 11:49
Copy link
Contributor

@d7415 d7415 left a 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 🤷‍♂️

Copy link
Contributor

@d7415 d7415 left a 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

Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Martin Stone <[email protected]>
@ildyria ildyria merged commit 8e03b69 into master Sep 30, 2024
1 check passed
@ildyria ildyria deleted the fix-folders branch September 30, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants