This commit is contained in:
iCodex
2024-07-30 14:30:12 +08:00
parent 6eb2410733
commit 9893df5bdd
13 changed files with 459 additions and 43 deletions

20
docker/build/run_dns.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env sh
. /build/set_hosts.sh
function pre_config() {
if [ ! -e ${ROOT_DIR}/edge-dns/configs/api_dns.yaml ]; then
touch ${ROOT_DIR}/edge-dns/configs/api_dns.yaml
cat >> ${ROOT_DIR}/edge-dns/configs/api_dns.yaml << EOF
rpc.endpoints: [ "${ENDPOINTS}" ]
clusterId: "${CLUSTERID}"
secret: "${SECRET}"
EOF
fi
}
ROOT_DIR='/usr/local/goedge'
set_hosts
pre_config
${ROOT_DIR}/edge-dns/bin/edge-dns