Skip to content

Commit

Permalink
remove envoy and auth services
Browse files Browse the repository at this point in the history
  • Loading branch information
John Petterson committed Feb 20, 2024
1 parent 6a4fc30 commit 7aa23ca
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 1,756 deletions.
22 changes: 7 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,19 @@ services:
- MONGO_INITDB_ROOT_USERNAME=${MONGODB_USERNAME:-root}
- MONGO_INITDB_ROOT_PASSWORD=${MONGODB_PASSWORD:-OlQtOieOzHMSfaEaEZrkd}

envoy:
build: ./server/envoy
ports:
- 9901:9901
- 50000:50000

auth:
build:
context: ./services/auth
args:
# Set proxy for go (e.g. https://goproxy.cn)
- GOPROXY
environment:
- MONGODB_URI=mongodb://${MONGODB_USERNAME:-root}:${MONGODB_PASSWORD:-OlQtOieOzHMSfaEaEZrkd}@mongodb:27017

gateway:
ports:
- 50000:8080
entrypoint:
- "-endpoint"
- "kvpair:50051"
build:
context: ./gateway
args:
# Set proxy for go (e.g. https://goproxy.cn)
- GOPROXY
environment:
- GRPC_GO_LOG_SEVERITY_LEVEL=${GRPC_GO_LOG_SEVERITY_LEVEL:-INFO}

kvpair:
build:
Expand Down
5 changes: 0 additions & 5 deletions scripts/update_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
top_dir="$(dirname "$script_dir")"

cd "$top_dir" || exit 1

# Update descriptor sets for envoy.
"${PROTOC:-protoc}" -Iproto -I. --include_imports --include_source_info --descriptor_set_out=server/envoy/proto/kvpair.pb proto/kvpair.proto

# Generate the gRPC code for gateway.
# Note that we must copy the files instead of making symlinks because, otherwise,
# we may not be able to build the container with only the files in "$dir"
Expand Down
5 changes: 0 additions & 5 deletions server/envoy/Dockerfile

This file was deleted.

99 changes: 0 additions & 99 deletions server/envoy/envoy.yaml

This file was deleted.

Binary file removed server/envoy/proto/kvpair.pb
Binary file not shown.
15 changes: 0 additions & 15 deletions services/auth/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions services/auth/go.mod

This file was deleted.

Loading

0 comments on commit 7aa23ca

Please sign in to comment.