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

Clarify Readme on bind volumes to avoid apps / custom_apps mishaps #2315

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tzerber
Copy link
Contributor

@tzerber tzerber commented Oct 17, 2024

Related to #2303

Added two examples, renamed the apps to custom_apps and added a note on mixing the apps and custom apps folder. I might put some comments in the examples folder too, if needed.

Signed-off-by: Kaloyan Nikolov <[email protected]>
Copy link
Member

@joshtrichards joshtrichards left a comment

Choose a reason for hiding this comment

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

Just a minor suggestion. And also, a possible alternative to even my suggestion that is tempting so I'll mention it to get your thoughts on it: we drop mention of apps/ entirely. ;-)

My thinking is that in the image we can essentially treat it 100% as a shipped component, and therefore just part of the installation. I see zero reason to ever include or suggest anyone place it on a separate volume (at least no more reason than to suggest they do so with any other arbitrary folder in /var/www/html that comes from Server directly).

README.md Outdated Show resolved Hide resolved
@joshtrichards joshtrichards linked an issue Oct 21, 2024 that may be closed by this pull request
@joshtrichards joshtrichards added this to the Nextcloud 30.0.2 milestone Oct 21, 2024
@joshtrichards joshtrichards changed the title Clarify Readme on bind volumes Clarify Readme on bind volumes to avoid apps / custom_apps mishaps Oct 21, 2024
@tzerber
Copy link
Contributor Author

tzerber commented Oct 21, 2024 via email

Co-authored-by: Josh <[email protected]>
Signed-off-by: Kaloyan Nikolov <[email protected]>
Copy link
Contributor

@J0WI J0WI left a comment

Choose a reason for hiding this comment

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

+1 for the updated example but IMHO the "more detailed" example is not needed.

--mount type=bind,source=$(pwd)/theme,target=/var/www/html/themes/<YOUR_CUSTOM_THEME> \
nextcloud
```
The examples above use the current directory for bind mounts. If this isn't suitable, you can modify the paths by using either a relative or absolute path.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd not use $(pwd) in the examples at all. Better use a figurative absolute path.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have intentionally put it there as $(pwd) so the code is actually working, but I can replace it with something like /path/on/host/to/local/nextcloud or similar. Can you please explain on why it shouldn't be like that (so I actually learn something :D )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify Additional Volumes section of the docs
3 participants