Skip to content

Commit

Permalink
Revert "main: api dockerfile, makefile and docker-compose (#19)" (#21)
Browse files Browse the repository at this point in the history
This reverts commit 52770c8.
  • Loading branch information
daniel-burghardt authored Jun 10, 2024
1 parent 52770c8 commit bc74a2e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 69 deletions.
22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (c *serveCmd) Command() *cobra.Command {
Usage: "Port to listen and serve on",
OptType: types.Int,
ConfigKey: &cfg.Port,
FlagDefault: 8001,
FlagDefault: 8000,
Required: false,
},
{
Expand All @@ -38,7 +38,7 @@ func (c *serveCmd) Command() *cobra.Command {
Usage: "The server base URL",
OptType: types.String,
ConfigKey: &cfg.ServerBaseURL,
FlagDefault: "http://localhost:8001",
FlagDefault: "http://localhost:8000",
Required: true,
},
{
Expand Down
22 changes: 1 addition & 21 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: '3.8'
services:
db:
image: postgres:12-alpine
Expand All @@ -8,27 +9,6 @@ services:
- postgres-db:/var/lib/postgresql/data
ports:
- 5432:5432
api:
image: stellar/wallet-backend:development
build: ./
depends_on:
db:
condition: service_started
ports:
- 8001:8001
entrypoint: ""
command:
- sh
- -c
- |
./wallet-backend migrate up
./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: GAXBXPBZNJG6PQBE7M3VTEZ4EIRVDL4TSTQEVHEOYOLMYQZWJ4WUA4YF

volumes:
postgres-db:
Expand Down
8 changes: 1 addition & 7 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
package main

import (
"github.com/stellar/wallet-backend/cmd"
)

// GitCommit is populated at build time by
// go build -ldflags "-X main.GitCommit=$GIT_COMMIT"
var GitCommit string
import "github.com/stellar/wallet-backend/cmd"

func main() {
cmd.Execute()
Expand Down

0 comments on commit bc74a2e

Please sign in to comment.