-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
36 lines (26 loc) · 980 Bytes
/
justfile
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
set dotenv-load
default:
@just --choose
run:
go run cmd/main.go
redis:
iredis --url $(echo $REDIS_DB_URL)
env:
doppler secrets download --no-file --format=env > .env
prd_env:
bash ./scripts/secrets.sh $DOPPLER_PRD_SERVICE_ACCOUNT $SERVICE_NAME $SERVICE_REGION
stg_env:
bash ./scripts/secrets.sh $DOPPLER_STG_SERVICE_ACCOUNT $SERVICE_STG_NAME $SERVICE_STG_REGION
kafka_ui:
#!/bin/bash
bash scripts/kafka_ui.sh
docker run -p 9090:8080 -v ./.kafka.yml:/application.yml provectuslabs/kafka-ui:latest
stream_add_stg booking_id:
go run tests/stream/generator.go stg {{booking_id}}
bash tests/stream/add.sh {{booking_id}} $STG_URL $BOOKING_TOKEN
stream_add_prd booking_id:
go run tests/stream/generator.go prd {{booking_id}}
bash tests/stream/add.sh {{booking_id}} $PRD_URL $BOOKING_TOKEN
stream_add_local booking_id:
go run tests/stream/generator.go dev {{booking_id}}
bash tests/stream/add.sh {{booking_id}} http://localhost:8080 $BOOKING_TOKEN