Skip to content

Commit

Permalink
Adding quick-connect binary (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: Shaun Davis <[email protected]>
  • Loading branch information
davissp14 and Shaun Davis authored Dec 9, 2021
1 parent 99b9d0a commit 1818562
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/flyadmin ./cmd/flyadmin
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start ./cmd/start
COPY ./bin/* /fly/bin/


FROM flyio/stolon:b6b9aaf as stolon

Expand Down
7 changes: 7 additions & 0 deletions bin/connect
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

DATABASE=${1:-postgres}
USERNAME=${2:-postgres}
PASSWORD=${3:-$OPERATOR_PASSWORD}

psql postgres://$USERNAME:$PASSWORD@$FLY_APP_NAME.internal:5432/$DATABASE

0 comments on commit 1818562

Please sign in to comment.