-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (47 loc) · 2.18 KB
/
Makefile
File metadata and controls
53 lines (47 loc) · 2.18 KB
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
52
53
# Define variables for architecture-specific settings
ARCH_ARM64 := $(shell if [ "$$(uname -m)" = "arm64" ] || [ "$$(uname -m)" = "aarch64" ]; then echo "-arm64"; else echo ""; fi)
ARCH_OTHER := $(shell if [ "$$(uname -m)" != "arm64" ] && [ "$$(uname -m)" != "aarch64" ]; then echo "scroll-"; else echo ""; fi)
NAMESPACE ?= default
L2_IMAGE_TAG := $(ARCH_OTHER)v5.7.25$(ARCH_ARM64)
L1_RPC_HOST := l1-devnet.scrollsdk
bootstrap:
echo "Pulling helm chart..."
helm pull oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-sdk --version 0.0.59
echo "Extracting helm chart..."
tar -xvf *.tgz
$(MAKE) config
config:
echo "Creating configuration files..."
cd scroll-sdk && time docker run --rm -it -v .:/contracts/volume scrolltech/scroll-stack-contracts:gen-configs-2eba3d2c418b16f4a66d9baadeb1c1bafdca81b1
echo "Creating env files..."
./create-env-files.sh scroll-sdk
./prepare-config-files.sh
install:
helm upgrade -i scroll-sdk scroll-sdk -n $(NAMESPACE) \
--set l2-rpc.image.tag=$(L2_IMAGE_TAG) \
--set l2-sequencer.image.tag=$(L2_IMAGE_TAG) \
--set l2-bootnode.image.tag=$(L2_IMAGE_TAG) \
--set l1-devnet.ingress.main.hosts[0].host=$(L1_RPC_HOST) \
--set l1-devnet.ingress.main.hosts[0].paths[0].path=/ \
--set l1-devnet.ingress.main.hosts[0].paths[0].pathType=Prefix \
--values scroll-sdk/admin-system-backend-config.yaml \
--values scroll-sdk/admin-system-cron-config.yaml \
--values scroll-sdk/balance-checker-config.yaml \
--values scroll-sdk/bridge-history-api-config.yaml \
--values scroll-sdk/bridge-history-fetcher-config.yaml \
--values scroll-sdk/chain-monitor-config.yaml \
--values scroll-sdk/coordinator-api-config.yaml \
--values scroll-sdk/coordinator-cron-config.yaml \
--values scroll-sdk/frontend-config.yaml \
--values scroll-sdk/gas-oracle-config.yaml \
--values scroll-sdk/genesis.yaml \
--values scroll-sdk/rollup-explorer-backend-config.yaml \
--values scroll-sdk/rollup-node-config.yaml \
--values scroll-sdk/scroll-common-config.yaml \
--values scroll-sdk/scroll-common-config-contracts.yaml
reload-env-files:
./create-env-files.sh scroll-sdk
delete:
helm uninstall scroll-sdk -n $(NAMESPACE)
upgrade:
$(MAKE) install