mirror of
https://github.com/icodex/docker-goedge.git
synced 2026-03-14 05:46:26 -05:00
update
This commit is contained in:
20
docker/build/run_dns.sh
Executable file
20
docker/build/run_dns.sh
Executable 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
|
||||
Reference in New Issue
Block a user