Skip to content

Commit

Permalink
Remove the necessity of calling COPY . ./
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelosalloum committed Nov 22, 2024
1 parent 894f4cf commit d5a3781
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
1 change: 0 additions & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ WORKDIR /app/github.com/stellar/stellar-disbursement-platform
RUN apt-get update && apt-get install -y jq && rm -rf /var/lib/apt/lists/*
# Copy the built executable and all source files for debugging
COPY --from=build /bin/stellar-disbursement-platform /app/github.com/stellar/stellar-disbursement-platform/
COPY . ./
# Install Delve
RUN go install github.com/go-delve/delve/cmd/dlv@latest
# Ensure the binary has executable permissions
Expand Down
16 changes: 15 additions & 1 deletion dev/docker-compose-sdp-anchor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,21 @@ services:
SEP24_JWT_SECRET: jwt_secret_1234567890
RECAPTCHA_SITE_SECRET_KEY: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
ANCHOR_PLATFORM_OUTGOING_JWT_SECRET: mySdpToAnchorPlatformSecret
entrypoint: "./dev/scripts/debug_entrypoint.sh"
entrypoint: ""
command:
- sh
- -c
- |
sleep 5
./stellar-disbursement-platform db admin migrate up
./stellar-disbursement-platform db tss migrate up
./stellar-disbursement-platform db auth migrate up --all
./stellar-disbursement-platform db sdp migrate up --all
./stellar-disbursement-platform db setup-for-network --all
echo "starting dlv stellar-disbursement-platform"
/go/bin/dlv exec ./stellar-disbursement-platform serve --continue --accept-multiclient --headless --listen=:2345 --api-version=2 --log
volumes:
- ./scripts/add_test_users.sh:/app/github.com/stellar/stellar-disbursement-platform/dev/scripts/add_test_users.sh

db-anchor-platform:
container_name: anchor-platform-postgres-db-mtn
Expand Down
15 changes: 0 additions & 15 deletions dev/scripts/debug_entrypoint.sh

This file was deleted.

0 comments on commit d5a3781

Please sign in to comment.