DuzAwe Posted January 20, 2021 Share Posted January 20, 2021 (edited) Is it possible to create this gravity-sync as a plugin or would it be better suited as a user script? I have added it manually and ran it with userscript a few times now. But Am aware that update will likely wipe it every time and it persisting between updates is likely dependent on a plugin. Edited January 20, 2021 by DuzAwe Quote Link to comment
primeval_god Posted January 21, 2021 Share Posted January 21, 2021 I would suggest building it into a docker container. Quote Link to comment
ZenBuddha Posted April 28, 2021 Share Posted April 28, 2021 @DuzAwe, were you able to get gravity-sync working against 2 pihole docker containers? I'm really interested in getting this setup and I'm having the hardest time figuring it out. Thanks for any info you have. Quote Link to comment
DuzAwe Posted April 29, 2021 Author Share Posted April 29, 2021 I had it set up as a script installing and running as a cron with Userscripts. Just follow the install instructions on the repo. I have stopped using it as I have issues with macvlan crashes since moving to 6.9. Quote Link to comment
rutherford Posted November 21, 2022 Share Posted November 21, 2022 (edited) I'm looking at this now. Following the posted instructions at the github it doesn't say anything about the lack of SSH in the docker. The dev says it does support docker (reddit), but mine has no SSH. Perhaps I should manually add ssh? Like this.? # which ssh # <returns nothing> This is funky "For both standard and container based Pi-hole deployments, Gravity Sync will run directly on the host OS and not inside of the container image." https://github.com/vmstan/gravity-sync/wiki/System-Requirements So I'd run the curl command just in the normal unRaid command prompt? That seems dodgy. Edited November 21, 2022 by dkerlee Quote Link to comment
Rick_Sanchez Posted Monday at 07:52 PM Share Posted Monday at 07:52 PM Has anyone found a way to run gravity sync alongside pihole in a docker image? Quote Link to comment
ich777 Posted Tuesday at 08:35 AM Share Posted Tuesday at 08:35 AM You can do that already in a LXC container and I already have an image for that available, currently you have to install it manually but it is working and running on my system just fine. The advantage is that you don't have to change any ports for Unraid because the LXC container has it's own dedicated IP address and you can use keepalived (which is also preinstalled) for high availability, so to speak if one goes down another one automatically will jump in. https://github.com/ich777/unraid_lxc_pihole The only downside is that you can't download it through the CA App just yet but you can do it manually and the steps on how to do that are pretty easy: Open up a Unraid terminal Issue this command in there to download the template: wget -O /tmp/lxc_container_template.xml https://github.com/ich777/unraid_lxc_pihole/raw/main/lxc_container_template.xml Close the Unraid terminal In the browser navigate to: http://YourUNRAIDIP/LXCAddTemplate (of course you have to change YourUNRAIDIP to your Unraid IP address) Make your changes and deploy the image (wait until the done button is displayed) This will only work if you have the LXC plugin installed and configured properly! Just make sure to read the README.md in the linked repository, I think I have described everything in there. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.