restucturization of recipients payment methods
All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful

This commit is contained in:
Stephan D
2025-12-04 14:40:21 +01:00
parent 3b04753f4e
commit bf85ca062c
120 changed files with 1415 additions and 538 deletions

View File

@@ -17,25 +17,25 @@ RUN apk add --no-cache bash git build-base protoc protobuf-dev \
&& go install google.golang.org/protobuf/cmd/protoc-gen-go@latest \
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest \
&& bash ci/scripts/proto/generate.sh
WORKDIR /src/api/chain/gateway
WORKDIR /src/api/gateway/chain
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -trimpath -ldflags "\
-s -w \
-X github.com/tech/sendico/chain/gateway/internal/appversion.Version=${APP_VERSION} \
-X github.com/tech/sendico/chain/gateway/internal/appversion.Revision=${GIT_REV} \
-X github.com/tech/sendico/chain/gateway/internal/appversion.Branch=${BUILD_BRANCH} \
-X github.com/tech/sendico/chain/gateway/internal/appversion.BuildUser=${BUILD_USER} \
-X github.com/tech/sendico/chain/gateway/internal/appversion.BuildDate=${BUILD_DATE}" \
-X github.com/tech/sendico/gateway/chain/internal/appversion.Version=${APP_VERSION} \
-X github.com/tech/sendico/gateway/chain/internal/appversion.Revision=${GIT_REV} \
-X github.com/tech/sendico/gateway/chain/internal/appversion.Branch=${BUILD_BRANCH} \
-X github.com/tech/sendico/gateway/chain/internal/appversion.BuildUser=${BUILD_USER} \
-X github.com/tech/sendico/gateway/chain/internal/appversion.BuildDate=${BUILD_DATE}" \
-o /out/chain-gateway .
FROM alpine:latest AS runtime
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/chain/gateway/config.yml /app/config.yml
COPY api/chain/gateway/env /app/env
COPY api/chain/gateway/entrypoint.sh /app/entrypoint.sh
COPY api/gateway/chain/config.yml /app/config.yml
COPY api/gateway/chain/env /app/env
COPY api/gateway/chain/entrypoint.sh /app/entrypoint.sh
COPY --from=build /out/chain-gateway /app/chain-gateway
RUN chmod +x /app/entrypoint.sh
EXPOSE 50070 9403

View File

@@ -23,7 +23,7 @@ services:
<<: *common-env
container_name: sendico-chain-gateway
restart: unless-stopped
image: ${REGISTRY_URL}/chain/gateway:${APP_V}
image: ${REGISTRY_URL}/gateway/chain:${APP_V}
pull_policy: always
environment:
CHAIN_GATEWAY_MONGO_HOST: ${CHAIN_GATEWAY_MONGO_HOST}

View File

@@ -104,10 +104,10 @@ if [ -f "${PROTO_DIR}/oracle/v1/oracle.proto" ]; then
generate_go_with_grpc "${PROTO_DIR}/oracle/v1/oracle.proto"
fi
if [ -f "${PROTO_DIR}/chain/gateway/v1/gateway.proto" ]; then
if [ -f "${PROTO_DIR}/gateway/chain/v1/chain.proto" ]; then
info "Compiling chain gateway protos"
clean_pb_files "./pkg/proto/chain/gateway"
generate_go_with_grpc "${PROTO_DIR}/chain/gateway/v1/gateway.proto"
clean_pb_files "./pkg/proto/gateway/chain"
generate_go_with_grpc "${PROTO_DIR}/gateway/chain/v1/chain.proto"
fi
if [ -f "${PROTO_DIR}/payments/orchestrator/v1/orchestrator.proto" ]; then