Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
3f69b615
Commit
3f69b615
authored
Jan 09, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ntp
parent
35d7cfbd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
files/pxe/boot.cfg.j2
files/pxe/boot.cfg.j2
+4
-1
files/pxe/menu.ipxe
files/pxe/menu.ipxe
+1
-1
files/services/docker-compose.yml.j2
files/services/docker-compose.yml.j2
+9
-0
No files found.
files/pxe/boot.cfg.j2
View file @
3f69b615
...
...
@@ -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
...
...
files/pxe/menu.ipxe
View file @
3f69b615
...
...
@@ -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}
...
...
files/services/docker-compose.yml.j2
View file @
3f69b615
...
...
@@ -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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment