-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (46 loc) · 1.49 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
.PHONY: start stop
include .env
export $(shell grep -v '^#' .env | xargs)
start:
@echo "Starting DFX..."
dfx start --clean --background
@echo "Install npm modules..."
npm install
@echo "Creating VetKeys API canister with hardcoded ID"
dfx canister create vetkd_system_api --specified-id h6gim-oiaaa-aaaao-a3siq-cai
@echo "Creating the remaining canisters..."
dfx canister create --all
@echo "Deploying ic_siwe_provider canister with runtime configurations..."
dfx deploy ic_siwe_provider --argument "( \
record { \
domain = \"127.0.0.1\"; \
uri = \"http://127.0.0.1:3000\"; \
salt = \"WjcIMw9vpXTcpSD/uGtOZmLLGbYCKVe6njceNLqKjt4=\"; \
chain_id = opt 1; \
scheme = opt \"http\"; \
statement = opt \"Login to the app\"; \
sign_in_expires_in = opt 2592000000000000; \
session_expires_in = opt 2592000000000000; \
}\
)"
@echo "Deploying ic_siws_provider canister with runtime configurations..."
dfx deploy ic_siws_provider --argument "( \
record { \
domain = \"127.0.0.1\"; \
uri = \"http://127.0.0.1:3000\"; \
salt = \"WjcIMw9vpXTcpSD/uGtOZmLLGbYCKVe6njceNLqKjt4=\"; \
chain_id = opt \"mainnet\"; \
scheme = opt \"http\"; \
statement = opt \"Login to the app\"; \
sign_in_expires_in = opt 2592000000000000; \
session_expires_in = opt 2592000000000000; \
}\
)"
@echo "Deploying canisters..."
dfx deploy internet_identity --argument '(null)'
dfx deploy
@echo "Generating canisters for Front-end..."
dfx generate
stop:
@echo "Stopping DFX..."
dfx stop