vdirsyncer
vdirsyncer copied to clipboard
Docker Environment has been added
Hello there!
I created a full functional and minimalistic Docker container containing Vdirsyncer.
It's based on alpine linux and people are able to use the sync time they want with the Ofelia implementation.
Feel free to test and if it's okay for the maintainers of this great projekt, it would be an honor if you submit my pull request, to add it to this repository :).
Greetings
Update: I've done an almost complete rewrite of the container.
Now it is way more userfriendly. I dropped Ofelia and implemented Cron and Users can adjust the synctime with an environment variable (CRON_TIME).
There are also environment variables for AUTODISCOVER and AUTOSYNC, which enable automatic discover and automatic sync from Vdirsyncer.
To sum up, more userfriendly, just one container and more functions, feel free to test :) Bleala/Vdirsyncer
Hi. Thanks for the contribution.
I'd much rather include the itself Dockerfile in-repository. I'm not sure where the Dockerfile for this image is right now.
@WhyNotHugo
It's not the best way to include only the Dockerfile because i also added some scripts, example files, etc.
You can find the Github Repo here: https://github.com/Bleala/Vdirsyncer-DOCKERIZED
Docker Hub: https://hub.docker.com/r/bleala/vdirsyncer
Maybe the best way is to shout out there is a valid docker container (in the Readme or Docs) and link to the repository. I'll keep it updated, build the containers and push them to Docker Hub.
What you thinking?
Your Dockerfiles looks pretty good, just changing it to have ENTRYPOINT ["/usr/bin/vdirsyncer"] would be sufficient change to merge it (well, also without the ENV and HEALTCHECK, since it wouldn't apply).
Alpine sounds like a small, solid base to run this. Have you considered using python3.9-alpine as a base image? Does it make any difference in terms of build speed / image size?
Oh, your introduction to vdirsyncer would also be a welcome improvement to ours in the docs.
@WhyNotHugo
I considered running the container with ENTRYPOINT ["/usr/bin/vdirsyncer"], but as i am a big fan of customization, and i like it if people give you the opportunity to change some things in containers, i decided to add environment variables.
The most useful part here is that people can edit the synctime as they want to, so i don't want to change the Dockerfile this way. But it's not a problem, you don't have to merge my Dockerile and that stuff, i just wanted that people can see, that there is a valid docker container with vdirsyncer.
Yeah i tried the python (alpine) base image too, there was not much difference in build time and size, but somehow the container with alpine as base image was a little bit smaller, so i stayed with the normal alpine image instead of the python one.
What introduction to you exactly mean? My README or the manual i wrote in the issue in my github repo?
I would like to help you improve your docs, because i like vdirsyncer very much. :)
Could you give me a hint on how to open a pull request for the docs? Never did that before^^
Thanks Bleala, I tried your Docker image yesterday and got my sync to work from my current server to a VM I'm testing a new server setup on. Your documentation was really helpful and gave some good hints on what to look out for.
Thanks Bleala, I tried your Docker image yesterday and got my sync to work from my current server to a VM I'm testing a new server setup on. Your documentation was really helpful and gave some good hints on what to look out for.
You're welcome! :) Good to hear, that everything worked fine for you and my documentation helped you.