Skip to content

Commit 64242f3

Browse files
committed
ci: add make targets
1 parent 9816bef commit 64242f3

File tree

7 files changed

+59
-5
lines changed

7 files changed

+59
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ volume
1414
config-files/*.last_processed_batch.json
1515

1616
nonce_*.bin
17+
18+
infra/ansible/playbooks/ini/**.ini

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,3 +1006,21 @@ telemetry_dump_db:
10061006
telemetry_create_env:
10071007
@cd telemetry_api && \
10081008
cp .env.dev .env
1009+
1010+
__ANSIBLE__: ## ____
1011+
1012+
ansible_batcher_create_env: ## Create empty variables files for the Batcer deploy
1013+
@cp infra/ansible/playbooks/ini/caddy-batcher.ini.example infra/ansible/playbooks/ini/caddy-batcher.ini
1014+
@cp infra/ansible/playbooks/ini/config-batcher.ini.example infra/ansible/playbooks/ini/config-batcher.ini
1015+
@cp infra/ansible/playbooks/ini/env-batcher.ini.example infra/ansible/playbooks/ini/env-batcher.ini
1016+
@echo "Config files for the Batcher created in infra/ansible/playbooks/ini"
1017+
@echo "Please complete the values and run make ansible_batcher_deploy"
1018+
1019+
ansible_batcher_deploy: ## Deploy the Batcher. Parameters: INVENTORY, KEYSTORE
1020+
@if [ -z "$(INVENTORY)" ] || [ -z "$(KEYSTORE)" ]; then \
1021+
echo "Error: Both INVENTORY and KEYSTORE must be set."; \
1022+
exit 1; \
1023+
fi
1024+
@ansible-playbook infra/ansible/playbooks/batcher.yaml \
1025+
-i $(INVENTORY) \
1026+
-e "keystore_path=$(KEYSTORE)"

infra/ansible/playbooks/batcher.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#- import_playbook: setup.yaml
2-
#- import_playbook: webserver.yaml
3-
#- import_playbook: rust.yaml
4-
#- import_playbook: go.yaml
5-
#- import_playbook: eigenlayer-cli.yaml
1+
- import_playbook: setup.yaml
2+
- import_playbook: webserver.yaml
3+
- import_playbook: rust.yaml
4+
- import_playbook: go.yaml
5+
- import_playbook: eigenlayer-cli.yaml
66

77
- hosts: batcher
88
vars:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[global]
2+
batcher_domain=
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[global]
2+
aligned_layer_deployment_config_file_path=
3+
eigen_layer_deployment_config_file_path=
4+
eth_rpc_url=
5+
eth_rpc_url_fallback=
6+
eth_ws_url=
7+
eth_ws_url_fallback=
8+
9+
ecdsa_private_key_store_path=
10+
ecdsa_private_key_store_password=
11+
12+
batcher_replacement_private_key=<only for holesky>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[global]
2+
secret_access_key=
3+
region=
4+
access_key_id=
5+
bucket_name=
6+
download_endpoint=
7+
log_level=<debug, info, warn, error>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# The Caddyfile is an easy way to configure your Caddy web server.
2+
3+
# To use your own domain name (with automatic HTTPS), first make
4+
# sure your domain's A/AAAA DNS records are properly pointed to
5+
# this machine's public IP, then replace ":80" below with your
6+
# domain name.
7+
8+
# Refer to the Caddy docs for more information:
9+
# https://caddyserver.com/docs/caddyfile
10+
11+
{{ batcher_domain }} {
12+
reverse_proxy localhost:8080
13+
}

0 commit comments

Comments
 (0)