Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: drop coredns #323

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ S3_GW_IMAGE=nspccdev/neofs-s3-gw
#S3_AUTHMATE_URL=https://github.com/nspcc-dev/neofs-s3-gw/releases/download/v${S3_GW_VERSION}/neofs-s3-authmate-${S3_GW_PLATFORM}
#S3_GW_URL=https://github.com/nspcc-dev/neofs-s3-gw/releases/download/v${S3_GW_VERSION}/neofs-s3-gw-${S3_GW_PLATFORM}

# Coredns
COREDNS_VERSION=v016
COREDNS_IMAGE=nspccdev/coredns

# NeoFS CLI binary
NEOFS_CLI_URL=https://github.com/nspcc-dev/neofs-node/releases/download/v0.43.0/neofs-cli-linux-amd64
#NEOFS_CLI_PATH=/path/to/neofs-cli-binary
Expand Down
1 change: 0 additions & 1 deletion .services
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# Will start from top to bottom and stop in reverse
s3_gate
rest_gate
coredns
6 changes: 1 addition & 5 deletions bin/update_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
set -e

: "${HOSTS_FILE:=/etc/hosts}"
: "${COREFILE:=services/coredns/Corefile}"
: "${NEOFS_CHAIN_CONFIG:=services/ir/cfg/config.yml}"
temp_file=$(mktemp)

# Get default hosts
make hosts > "$temp_file"

# Get the NeoFS chain IP address from the $COREFILE file
# Get the NeoFS chain IP address from the hosts file
neofs_chain_ip=$(grep "ir01.neofs.devenv" "$temp_file" | awk '{print $1}')

# Replace the IP address in the $COREFILE file
sed -i -E "s/(nns[[:space:]]*http\:\/\/)([0-9]{1,3}[.]){3}[0-9]{1,3}(:30333)/\1$neofs_chain_ip\3/" "$COREFILE"

# Get the line numbers of "Addresses:"
# FIXME(#302): grep by 'listen:' is unstable, jump to exact YAML fields
addresses_lines=$(grep -n "listen:" "$NEOFS_CHAIN_CONFIG" | cut -d ':' -f 1)
Expand Down
1 change: 0 additions & 1 deletion services/coredns/.env

This file was deleted.

1 change: 0 additions & 1 deletion services/coredns/.hosts

This file was deleted.

8 changes: 0 additions & 8 deletions services/coredns/Corefile

This file was deleted.

24 changes: 0 additions & 24 deletions services/coredns/docker-compose.yml

This file was deleted.

Loading