-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (43 loc) · 1.56 KB
/
Makefile
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
45
46
47
48
49
50
51
# kvdynamodb-provider Makefile
CAPABILITY_ID = "aws:kvdynamodb"
NAME = "kvdynamodb-provider"
VENDOR = "com.mattgilbride"
PROJECT = kvdynamodb_provider
VERSION = 0.1.0
REVISION = 0
include ./provider.mk
delete-test-table:
aws dynamodb delete-table \
--table-name kvdynamodb \
--endpoint-url http://localhost:8000
create-test-table:
aws dynamodb create-table \
--table-name kvdynamodb \
--attribute-definitions AttributeName=key,AttributeType=S \
--key-schema AttributeName=key,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 \
--endpoint-url http://localhost:8000
aws dynamodb update-time-to-live \
--table-name kvdynamodb \
--time-to-live-specification "Enabled=true, AttributeName=ttl" \
--endpoint-url http://localhost:8000
test:: export AWS_DYNAMODB_LOCAL_URI=http://localhost:8000
test:: export TABLE_NAME=kvdynamodb
test:: export KEY_ATTRIBUTE=key
test:: export VALUE_ATTRIBUTE=value
test:: export TTL_ATTRIBUTE=ttl
test::
-ps -ax | grep -i kvdynamodb_provider | awk '{print $$1}' | xargs kill -9
docker-compose down
docker-compose up -d
${MAKE} create-test-table
cargo clippy --all-targets --all-features
RUST_BACKTRACE=1 cargo test -- --nocapture
push-gh-arm:
wash reg push -u matthewtgilbride -p $$GH_PERSONAL_ACCESS_TOKEN \
ghcr.io/matthewtgilbride/kvdynamodb_provider_arm:0.1.1 \
build/kvdynamodb_provider.par.gz
push-gh-x86:
wash reg push -u matthewtgilbride -p $$GH_PERSONAL_ACCESS_TOKEN \
ghcr.io/matthewtgilbride/kvdynamodb_provider_x86:0.1.1 \
build/kvdynamodb_provider.par.gz