Skip to content

Commit

Permalink
feat(services/spot-archiver): complete service to archive spot pricin…
Browse files Browse the repository at this point in the history
…g for forecasts
  • Loading branch information
suptejas committed Sep 3, 2023
1 parent 708bf65 commit 1545a76
Show file tree
Hide file tree
Showing 6 changed files with 430 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ apis/pricing/.env
apis/pricing/regions
apis/pricing/target
target/
services/spot-archive/main
*.DS_Store
*fly.toml
8 changes: 8 additions & 0 deletions services/spot-archive/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Start from the Alpine base image
FROM alpine:latest

# Copy the Go binary
COPY main /main

# Use the binary as the main command
CMD ["/main"]
1 change: 1 addition & 0 deletions services/spot-archive/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-s -w" -o main ./
18 changes: 18 additions & 0 deletions services/spot-archive/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module spot_archive

go 1.21.0

require (
github.com/aws/aws-sdk-go v1.45.2 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.14.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/jackc/pgx/v4 v4.18.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/text v0.7.0 // indirect
)
Loading

0 comments on commit 1545a76

Please sign in to comment.