From ee0fb0ee475f4d6cf4b053fc162b13d29c6a2087 Mon Sep 17 00:00:00 2001 From: gouthamp-stellar Date: Thu, 31 Oct 2024 14:44:55 -0400 Subject: [PATCH] delete unused files (#70) --- docker-compose-tmp.yaml | 72 ----------------------------------------- soroban_rpc_startup.sh | 15 --------- 2 files changed, 87 deletions(-) delete mode 100644 docker-compose-tmp.yaml delete mode 100644 soroban_rpc_startup.sh diff --git a/docker-compose-tmp.yaml b/docker-compose-tmp.yaml deleted file mode 100644 index 0f05137..0000000 --- a/docker-compose-tmp.yaml +++ /dev/null @@ -1,72 +0,0 @@ -services: - db: - image: postgres:12-alpine - environment: - POSTGRES_HOST_AUTH_METHOD: trust - POSTGRES_DB: wallet-backend - volumes: - - postgres-db:/var/lib/postgresql/data - ports: - - 5432:5432 - api: - image: stellar/wallet-backend:development - build: - context: ./ - platforms: - - "linux/amd64" - #args: - # STELLAR_CORE_VERSION: 21.0.0-1872.c6f474133.jammy - depends_on: - db: - condition: service_started - ports: - - 8001:8001 - entrypoint: "" - command: - - sh - - -c - - | - ./wallet-backend migrate up - ./wallet-backend channel-account ensure 5 - ./wallet-backend serve - environment: - DATABASE_URL: postgres://postgres@db:5432/wallet-backend?sslmode=disable - PORT: 8001 - SERVER_BASE_URL: http://localhost:8001 - LOG_LEVEL: TRACE - WALLET_SIGNING_KEY: ${WALLET_SIGNING_KEY} - DISTRIBUTION_ACCOUNT_PUBLIC_KEY: ${DISTRIBUTION_ACCOUNT_PUBLIC_KEY} - DISTRIBUTION_ACCOUNT_SIGNATURE_PROVIDER: ${DISTRIBUTION_ACCOUNT_SIGNATURE_PROVIDER} - - # Env Signature Client - DISTRIBUTION_ACCOUNT_PRIVATE_KEY: ${DISTRIBUTION_ACCOUNT_PRIVATE_KEY} - - # KMS Signature Client - KMS_KEY_ARN: ${KMS_KEY_ARN} - AWS_REGIONG: ${AWS_REGION} - # Using KMS locally is necessary to inject the AWS credentials envs. - AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} - AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN} - - # Channel Account - CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE: ${CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE} - TRACKER_DSN: ${TRACKER_DSN} - STELLAR_ENVIRONMENT: ${STELLAR_ENVIRONMENT} - ingest: - image: stellar/wallet-backend:development - depends_on: - db: - condition: service_started - entrypoint: "" - command: - - sh - - -c - - ./wallet-backend ingest - environment: - DATABASE_URL: postgres://postgres@db:5432/wallet-backend?sslmode=disable - TRACKER_DSN: ${TRACKER_DSN} - STELLAR_ENVIRONMENT: ${STELLAR_ENVIRONMENT} -volumes: - postgres-db: - driver: local diff --git a/soroban_rpc_startup.sh b/soroban_rpc_startup.sh deleted file mode 100644 index b4b2c73..0000000 --- a/soroban_rpc_startup.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -e - -# Handle environment logic for Soroban RPC -if [ "$NETWORK" = "testnet" ]; then - CONFIG_FILE="/config/soroban-rpc-config.toml" -elif [ "$NETWORK" = "prod" ]; then - CONFIG_FILE="/config/soroban-prod-rpc-config.toml" -else - echo "Unknown environment: $NETWORK" - exit 1 -fi - -# Start Soroban RPC -./app/soroban-rpc --config-path "$CONFIG_FILE"