Commit 3f69b615 authored by nanahira's avatar nanahira

add ntp

parent 35d7cfbd
......@@ -4,8 +4,11 @@
# set site name
set site_name MyCard Boot
# self address
set self_address {{services.address}}
# set boot domain
set boot_domain {{services.address}}:16980
set boot_domain ${self_address}:16980
# set location of memdisk
set memdisk http://${boot_domain}/memdisk
......
......@@ -4,7 +4,7 @@
chain --autofree boot.cfg ||
echo Attempting to retrieve latest upstream version number...
chain --timeout 5000 http://${boot_domain}/version.ipxe ||
ntp ntp.aliyun.com ||
ntp ${self_address} ||
iseq ${cls} serial && goto ignore_cls ||
set cls:hex 1b:5b:4a # ANSI clear screen sequence - "^[[J"
set cls ${cls:string}
......
......@@ -72,3 +72,12 @@ services:
{% endif %}
{% endfor %}
{% endif %}
ntp:
restart: always
image: cturra/ntp
environment:
NTP_SERVERS: ntp1.aliyun.com,ntp2.aliyun.com,ntp3.aliyun.com,ntp4.aliyun.com
cap_add:
- SYS_TIME
ports:
- '{{services.address}}:123:123/udp'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment