[#148] Add coredns service

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2021-11-23 09:44:19 +03:00 committed by Alex Vanin
parent e963907bd4
commit bed94e3ff9
9 changed files with 46 additions and 1 deletions

6
.env
View file

@ -23,9 +23,13 @@ HTTP_GW_VERSION=0.16.0
HTTP_GW_IMAGE=nspccdev/neofs-http-gw HTTP_GW_IMAGE=nspccdev/neofs-http-gw
# S3 Gate # S3 Gate
S3_GW_VERSION=0.17.0 S3_GW_VERSION=17.0-16-gbefe084
S3_GW_IMAGE=nspccdev/neofs-s3-gw S3_GW_IMAGE=nspccdev/neofs-s3-gw
# Coredns
COREDNS_VERSION=v016
COREDNS_IMAGE=nspccdev/coredns
# NeoFS LOCODE database # NeoFS LOCODE database
LOCODE_DB_URL=https://github.com/nspcc-dev/neofs-locode-db/releases/download/v0.2.1/locode_db.gz LOCODE_DB_URL=https://github.com/nspcc-dev/neofs-locode-db/releases/download/v0.2.1/locode_db.gz
#LOCODE_DB_PATH=/path/to/locode_db #LOCODE_DB_PATH=/path/to/locode_db

View file

@ -7,3 +7,4 @@ ir
storage storage
http_gate http_gate
s3_gate s3_gate
coredns

View file

@ -55,6 +55,7 @@ get: $(foreach SVC, $(GET_SVCS), get.$(SVC))
up: pull get vendor/hosts up: pull get vendor/hosts
@$(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d)) @$(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
@./bin/tick.sh @./bin/tick.sh
@./bin/config.sh string SystemDNS container
@echo "NeoFS Developer Environment is ready" @echo "NeoFS Developer Environment is ready"
# Stop environment # Stop environment

View file

@ -23,6 +23,10 @@ update.eigen_trust_iterations:
@./bin/config.sh int EigenTrustIterations $(val) @./bin/config.sh int EigenTrustIterations $(val)
# Update system dns to resolve container names (make update.system_dns val=container)
update.system_dns:
@./bin/config.sh string SystemDNS $(val)
# Update alpha parameter of EigenTrust algorithm in 0 <= f <= 1.0 (make update.eigen_trust_alpha val=0.2) # Update alpha parameter of EigenTrust algorithm in 0 <= f <= 1.0 (make update.eigen_trust_alpha val=0.2)
update.eigen_trust_alpha: update.eigen_trust_alpha:
@./bin/config.sh string EigenTrustAlpha $(val) @./bin/config.sh string EigenTrustAlpha $(val)

1
services/coredns/.env Symbolic link
View file

@ -0,0 +1 @@
../../.env

1
services/coredns/.hosts Normal file
View file

@ -0,0 +1 @@
IPV4_PREFIX.53 coredns.LOCAL_DOMAIN

View file

@ -0,0 +1,8 @@
. {
nns http://192.168.130.90:30333
transfer {
to *
}
log
debug
}

View file

@ -0,0 +1,23 @@
---
version: "2.4"
services:
neofs_coredns:
image: ${COREDNS_IMAGE}:${COREDNS_VERSION}
container_name: coredns
domainname: ${LOCAL_DOMAIN}
hostname: coredns
networks:
chain_int:
internet:
ipv4_address: ${IPV4_PREFIX}.53
stop_signal: SIGKILL
volumes:
- ./Corefile:/Corefile
- ./../../vendor/hosts:/etc/hosts
networks:
chain_int:
internet:
external: true
name: basenet_internet

View file

@ -8,6 +8,8 @@ services:
hostname: s3_gate hostname: s3_gate
container_name: s3_gate container_name: s3_gate
restart: on-failure restart: on-failure
dns:
- ${IPV4_PREFIX}.53
networks: networks:
s3_gate_int: s3_gate_int:
internet: internet: