File tree Expand file tree Collapse file tree 4 files changed +19
-41
lines changed Expand file tree Collapse file tree 4 files changed +19
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- FROM alpine:edge
1
+ FROM alpine:3.5
2
2
MAINTAINER CHENHW2 <https://github.com/chenhw2>
3
3
4
- ARG BIN_URL=https://github.com/chenhw2/aliyun-ddns-cli/releases/download/v20170420/aliddns_linux-amd64-20170420.tar.gz
4
+ ARG VER=20170627
5
+ ARG URL=https://github.com/chenhw2/aliyun-ddns-cli/releases/download/v$VER/aliddns_linux-amd64-$VER.tar.gz
5
6
ARG TZ=Asia/Hong_Kong
6
7
7
- RUN apk add --update --no-cache wget supervisor ca-certificates tzdata \
8
+ RUN apk add --update --no-cache wget ca-certificates tzdata \
8
9
&& update-ca-certificates \
9
10
&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
10
11
&& rm -rf /var/cache/apk/*
11
12
12
- RUN mkdir -p /opt \
13
- && cd /opt \
14
- && wget -qO- ${BIN_URL} | tar xz \
13
+ RUN mkdir -p /usr/bin \
14
+ && cd /usr/bin \
15
+ && wget -qO- $URL | tar xz \
15
16
&& mv aliddns_* aliddns
16
17
17
18
ENV AccessKeyID=1234567890 \
18
19
AccessKeySecret=abcdefghijklmn \
19
20
Domain=ddns.example.win \
20
21
Redo=0
21
22
22
- ADD Docker_entrypoint.sh /entrypoint.sh
23
- RUN chmod +x /entrypoint.sh
24
-
25
- ENTRYPOINT ["/entrypoint.sh" ]
23
+ CMD aliddns \
24
+ --id $AccessKeyID \
25
+ --secret $AccessKeySecret \
26
+ auto-update \
27
+ --domain $Domain \
28
+ --redo $Redo
Original file line number Diff line number Diff line change @@ -17,8 +17,11 @@ $ docker run -d \
17
17
-e "AcceDomain=ddns.example.winssKeyID" \
18
18
-e "Redo=600" \
19
19
chenhw2/aliyun-ddns-cli
20
-
21
20
```
21
+
22
+ ### Example (for Synology)
23
+ - https://github.com/chenhw2/aliyun-ddns-cli/tree/master/example
24
+
22
25
### Help
23
26
```
24
27
$ docker run --rm chenhw2/aliyun-ddns-cli -h
@@ -46,8 +49,8 @@ GLOBAL OPTIONS:
46
49
--access-key-secret value, --secret value AliYun's Access Key Secret
47
50
--help, -h show help
48
51
--version, -v print the version
49
-
50
52
```
53
+
51
54
### CLI Example:
52
55
```
53
56
aliddns --id ${AccessKeyID} --secret ${AccessKeySecret} \
@@ -56,5 +59,4 @@ aliddns --id ${AccessKeyID} --secret ${AccessKeySecret} \
56
59
aliddns --id ${AccessKeyID} --secret ${AccessKeySecret} \
57
60
update --domain ddns.example.win \
58
61
--ipaddr $(ifconfig pppoe-wan | sed -n '2{s/[^0-9]*://;s/[^0-9.].*//p}')
59
-
60
- ```
62
+ ```
You can’t perform that action at this time.
0 commit comments