-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD
44 lines (41 loc) · 1.67 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
importpath = "github.com/vsco/domino",
srcs = [
"domino.go",
"expression.go",
],
visibility = ["//visibility:public"],
deps = [
"@com_github_aws_aws_sdk_go//aws:go_default_library",
"@com_github_aws_aws_sdk_go//aws/awserr:go_default_library",
"@com_github_aws_aws_sdk_go//aws/request:go_default_library",
"@com_github_aws_aws_sdk_go//service/dynamodb:go_default_library",
"@com_github_aws_aws_sdk_go//service/dynamodb/dynamodbattribute:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["domino_test.go"],
data = ["//:dynamodb"],
embed = [":go_default_library"],
deps = [
"@com_github_aws_aws_sdk_go//aws:go_default_library",
"@com_github_aws_aws_sdk_go//aws/awserr:go_default_library",
"@com_github_aws_aws_sdk_go//aws/credentials:go_default_library",
"@com_github_aws_aws_sdk_go//aws/session:go_default_library",
"@com_github_aws_aws_sdk_go//service/dynamodb:go_default_library",
"@com_github_aws_aws_sdk_go//service/dynamodb/dynamodbattribute:go_default_library",
"@com_github_stretchr_testify//assert:go_default_library",
],
)
#### Atlassian / Localstack ####
genrule(
name = "dynamodb",
outs = ["dynamodb-local-run-id"],
cmd = "docker stop dynamodb-local || true; docker rm -f dynamodb-local || true; docker run -d -p 4569:8000 --name dynamodb-local amazon/dynamodb-local:1.11.475 > $@",
local = 1,
message = "Spinning up dynamo-db container...",
visibility = ["//visibility:public"],
)