mirror of
https://github.com/EV21/dynb.git
synced 2025-12-26 16:39:32 +01:00
Compare commits
42 Commits
4925be5405
...
0.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
b5d300a86e
|
|||
|
a95effb00d
|
|||
|
a5dc7ea9b3
|
|||
|
63cbce3568
|
|||
|
73d2a7ac44
|
|||
|
cad6d47cd2
|
|||
|
06c35d99af
|
|||
|
9da624b163
|
|||
|
c01bea615e
|
|||
|
046a728f22
|
|||
|
3ded7fc883
|
|||
|
f942a4495d
|
|||
|
32404f2957
|
|||
|
3cdcdbc8bf
|
|||
|
226537b2b0
|
|||
|
976ea673f8
|
|||
|
9ed30f2bee
|
|||
|
3ab88e5993
|
|||
|
317abdbcec
|
|||
|
4faba4e600
|
|||
|
84784248c3
|
|||
|
b083080c9d
|
|||
|
48df7c7646
|
|||
|
b1f6c5a0fd
|
|||
|
17e23e7623
|
|||
|
bb1e0db9bf
|
|||
|
29c2f62292
|
|||
|
c85d5eaaee
|
|||
|
3221f29d71
|
|||
|
706b6d84c1
|
|||
|
6d9bf8a2ae
|
|||
|
6a14d00256
|
|||
|
dff0c1c178
|
|||
|
9bac611ddf
|
|||
|
1bb0f44d28
|
|||
|
730858344c
|
|||
|
e3781a87bb
|
|||
|
fa5086f197
|
|||
|
3fa15b4d9d
|
|||
|
2c90e74bf5
|
|||
|
cddcd9cfca
|
|||
|
616c1d47c1
|
@@ -14,12 +14,4 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: mdformat
|
- id: mdformat
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- mdformat-gfm # GitHub Flavored Markdown support
|
- 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
|
# 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
|
### 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]
|
* :memo: update README.md. [Eduard Veit]
|
||||||
|
|
||||||
### Other
|
### 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: normalizing pre-commit configuration to a top-level map. [Eduard Veit]
|
||||||
|
|
||||||
* :recycle: refactorings. [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]
|
* Refactor: :recycle: remove unused help message. [Eduard Veit]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
11
Dockerfile
11
Dockerfile
@@ -1,5 +1,12 @@
|
|||||||
FROM alpine:latest
|
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
|
WORKDIR /usr/src/app
|
||||||
COPY . .
|
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)
|
- [⚙ Configuration](#-configuration)
|
||||||
- [🏃 Run](#-run)
|
- [🏃 Run](#-run)
|
||||||
- [⏰ Cron](#-cron)
|
- [⏰ Cron](#-cron)
|
||||||
|
- [loop mode](#loop-mode)
|
||||||
|
- [crontab](#crontab)
|
||||||
- [🐟 docker](#-docker)
|
- [🐟 docker](#-docker)
|
||||||
|
- [environment variables](#environment-variables)
|
||||||
|
|
||||||
<!-- /TOC -->
|
<!-- /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
|
*/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.
|
Note, cron typically does not use the users PATH variable.
|
||||||
|
|
||||||
## 🐟 docker
|
## 🐟 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
|
```yaml
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
|
|||||||
Reference in New Issue
Block a user