mirror of
https://github.com/EV21/dynb.git
synced 2025-12-26 16:39:32 +01:00
Compare commits
4 Commits
4925be5405
...
c5cadfe544
| Author | SHA1 | Date | |
|---|---|---|---|
|
c5cadfe544
|
|||
|
c130ef6ac3
|
|||
|
31818ffec1
|
|||
|
200c5b5d1a
|
@@ -15,11 +15,3 @@ repos:
|
||||
- id: mdformat
|
||||
additional_dependencies:
|
||||
- mdformat-gfm # GitHub Flavored Markdown support
|
||||
- repo: https://codeberg.org/frnmst/md-toc
|
||||
rev: 8.0.1 # or a specific git tag from md-toc
|
||||
hooks:
|
||||
- id: md-toc
|
||||
args:
|
||||
- "--in-place"
|
||||
- "github"
|
||||
- "--header-levels 6"
|
||||
36
CHANGELOG.md
36
CHANGELOG.md
@@ -1,20 +1,50 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## (unreleased)
|
||||
## 0.2.0 (2021-09-24)
|
||||
|
||||
### New
|
||||
|
||||
* :sparkles: enable parameter extensions for `docker run --interactive` [Eduard Veit]
|
||||
|
||||
* :sparkles: add pre-commit hooks for markdown. [Eduard Veit]
|
||||
|
||||
* :sparkles: change git hooks and add shfmt. [Eduard Veit]
|
||||
|
||||
* :sparkles: add pre-commit git hook for shellcheck. [Eduard Veit]
|
||||
|
||||
### Changes
|
||||
|
||||
* :wrench: remove md-toc from pre-commit. [Eduard Veit]
|
||||
|
||||
* :wrench: handle dns server selection. [Eduard Veit]
|
||||
|
||||
### Documentation
|
||||
|
||||
* :memo: update CHANGELOG.md. [Eduard Veit]
|
||||
|
||||
* :memo: document docker parameters. [Eduard Veit]
|
||||
|
||||
* :memo: change default dns server setting. [Eduard Veit]
|
||||
|
||||
* :memo: update CHANGELOG. [Eduard Veit]
|
||||
|
||||
* :memo: update README.md. [Eduard Veit]
|
||||
|
||||
### Other
|
||||
|
||||
* :art: lint README.md. [Eduard Veit]
|
||||
|
||||
* :art: add shfmt params to pre-commit check. [Eduard Veit]
|
||||
|
||||
* :art: fix shell style. [Eduard Veit]
|
||||
|
||||
* :recycle: seperate parsing logic. [Eduard Veit]
|
||||
|
||||
* :recycle: normalizing pre-commit configuration to a top-level map. [Eduard Veit]
|
||||
|
||||
* :recycle: refactorings. [Eduard Veit]
|
||||
|
||||
* Feature: :sparkles: add pre-commit git hook for shellcheck. [Eduard Veit]
|
||||
|
||||
* Refactor: :recycle: remove unused help message. [Eduard Veit]
|
||||
|
||||
|
||||
|
||||
11
Dockerfile
11
Dockerfile
@@ -1,5 +1,12 @@
|
||||
FROM alpine:latest
|
||||
RUN apk update && apk add bash curl jq bind-tools
|
||||
RUN \
|
||||
apk update \
|
||||
&& \
|
||||
apk add \
|
||||
bash \
|
||||
curl \
|
||||
jq \
|
||||
bind-tools
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
CMD /bin/bash /usr/src/app/dynb.sh
|
||||
ENTRYPOINT ["/bin/bash", "/usr/src/app/dynb.sh"]
|
||||
11
README.md
11
README.md
@@ -14,7 +14,10 @@ IPv4 (A) and IPv6 (AAAA) record updates are supported.
|
||||
- [⚙ Configuration](#-configuration)
|
||||
- [🏃 Run](#-run)
|
||||
- [⏰ Cron](#-cron)
|
||||
- [loop mode](#loop-mode)
|
||||
- [crontab](#crontab)
|
||||
- [🐟 docker](#-docker)
|
||||
- [environment variables](#environment-variables)
|
||||
|
||||
<!-- /TOC -->
|
||||
|
||||
@@ -132,11 +135,17 @@ then enter :point_down: to run dynb every five minutes.
|
||||
*/5 * * * * $HOME/.local/bin/dynb >> $HOME/.local/share/dynb/dynb-cron.log
|
||||
```
|
||||
|
||||
alternative with docker and parameters::
|
||||
|
||||
```bash
|
||||
*/5 * * * * docker run --interactive --tty --rm --network host ev21/dynb:latest --ip-mode 64 --update-method domrobot --domain dyndns.example.com --username user42 --password SuperSecretPassword
|
||||
```
|
||||
|
||||
Note, cron typically does not use the users PATH variable.
|
||||
|
||||
## 🐟 docker
|
||||
|
||||
This is an example of a `docker-compose.yml` file. If you are using IPv6 make sure the routing works properly with your docker container.
|
||||
This is an example of a `docker-compose.yml` file. If you are using IPv6 make sure the routing works properly with your docker container. Note: [IPv6 networking](https://docs.docker.com/config/daemon/ipv6/) is only supported on Docker daemons running on Linux hosts.
|
||||
|
||||
```yaml
|
||||
version: '3.4'
|
||||
|
||||
Reference in New Issue
Block a user