Skip to content

anki: create a volume #13

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SandaruKasa
Copy link
Contributor

Analogous to https://github.com/ankicommunity/anki-devops-services/blob/2218ed5f857c42085fd7091ea36f5b7c73f2ffae/services/anki-sync-server/images/Dockerfile#L35

Doing VOLUME here does not really prevent docker-compose from overriding it. This is similar to how EXPOSE does not really matter for docker-compose's ports. But at least there will always be a volume by default, lowering chances of misconfiguring the thing and losing the data together with the container.

The only doubt I have that SYNC_BASE here is ENV and not ARG. Maybe it would make more sense to switch it to ARG. I personally can't really see a use-case for being able to overwrite the sync path inside the container anyways. If one wants to do something different with it, they should probably just mount a volume on top of the hardcoded path.

@LuckyTurtleDev
Copy link
Owner

Maybe it would make more sense to switch it to ARG

I see not the benefits of using ARG over ENV. ARG would only be available at build time so, we need en ENV anyway.

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