mirror of
https://github.com/icodex/docker-goedge.git
synced 2026-03-13 21:41:37 -05:00
21 lines
421 B
Bash
Executable File
21 lines
421 B
Bash
Executable File
#!/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
|