Rather than pulling and storing the py file, having start script and fetching of qemu files here, everything can just be done in the Dockerfile.
|2 years ago|
|.dockerignore||2 years ago|
|.drone.yml||2 years ago|
|.gitignore||2 years ago|
|Dockerfile||2 years ago|
|LICENSE||2 years ago|
|Makefile||2 years ago|
|README.md||2 years ago|
|manifest.tmpl||2 years ago|
Docker Cloudfare DDNS
Simple Docker image that wraps an example script to dynamically update a Cloudflare DNS record.
There are two things to configure. First, the domain that you wish to update needs to be provided as a command line argument. This can be done by adding it to the end of your run command (example in the Makefile) or by adding it as a command to your compose file. Eg:
ddns: image: IamTheFij/cloudflare-ddns command: ["example.com"]
Your Cloudflare credentials can be passed in any way that python-cloudflare allows. Generally, either via envioronment variables:
CF_API_EMAILfirstname.lastname@example.org # Do not set if using an API Token CF_API_KEY=00000000000000000000 CF_API_CERTKEY='v1.0-...'
Or by providing a file mounted to the working directory in the image,
/src/.cloudflare.cfg that contains something like:
[CloudFlare] emal = email@example.com # Do not set if using an API Token token = 00000000000000000000 certtoken = v1.0-...
Then run. To execute from this directory, you can use the convenient Make target.