Skip to content

Commit

Permalink
update doc and script file to add mainnet followers
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Mar 6, 2025
1 parent d963665 commit ac7a5db
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/movement-node/run/ansible/follower-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ Restart=on-failure
WantedBy=multi-user.target
```

An Ansible script to deploy the above systemd service is available [here](./movement-full-follower.yml). An example usage with an ec2 inventory is below. You may also benefit from watching our tutorial [VIDEO](https://www.loom.com/share/59e6a31a08ef4260bdc9b082a3980f52).
An Ansible script to deploy the above systemd service is available for [testnet](./testnet/movement-full-follower.yml) and [mainnet](./mainnet/movement-full-follower.yml). An example usage with an ec2 inventory is below. You may also benefit from watching our tutorial [VIDEO](https://www.loom.com/share/59e6a31a08ef4260bdc9b082a3980f52).

```shell
ansible-playbook --inventory <your-inventory> \
--user ubuntu \
--extra-vars "movement_container_version=${CONTAINER_REV}" \
--extra-vars "user=ubuntu" \
docs/movement-node/run/ansible/follower-node/movement-full-follower.yml \
docs/movement-node/run/ansible/follower-node/testnet/movement-full-follower.yml \
--private-key your-private-key.pem
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ User={{ user }}
WorkingDirectory=/home/{{ user }}/movement
Environment="DOT_MOVEMENT_PATH=/home/{{ user }}/.movement"
Environment="CONTAINER_REV={{ rev }}"
Environment="MAPTOS_CHAIN_ID=126"
Environment="MOVEMENT_SYNC=follower::mainnet-l-sync-bucket-sync<=>{default_signer_address_whitelist,maptos,maptos-storage,movement-da-db}/**"
Environment="MAPTOS_CHAIN_ID={{ chain_id }}"
#Environment="MOVEMENT_SYNC={{ movement_sync }}"

Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_PROTOCOL=https"
Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_HOSTNAME=m1-da-light-node.mainnet.movementnetwork.xyz"
Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_PORT=443"
Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_PROTOCOL={{ movement_da_light_node_connection_protocol }}"
Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_HOSTNAME={{ movement_da_light_node_connection_hostname }}"
Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_PORT={{ movement_da_light_node_connection_port }}"

Environment="AWS_REGION=us-west-1"
Environment="AWS_REGION={{ aws_region }}"
ExecStart=/usr/bin/docker compose --env-file .env -f /home/{{ user }}/movement/docker/compose/movement-full-node/docker-compose.yml -f /home/{{ user }}/movement/docker/compose/movement-full-node/docker-compose.follower.yml up --force-recreate --remove-orphans
Restart=on-failure

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@
vars:
repo_url: "https://github.com/movementlabsxyz/movement"
destination_path: "/home/{{ user }}/movement"
movement_sync: "follower::move-main-rec-l-sb-sync<=>{default_signer_address_whitelist,maptos,maptos-storage,movement-da-db}/**"
chain_id: "126"

movement_da_light_node_connection_protocol: "https"
movement_da_light_node_connection_hostname: "m1-da-light-node.mainnet.movementnetwork.xyz"
movement_da_light_node_connection_port: "443"

aws_region: "us-west-1"
rev: "{{ movement_container_version }}"


tasks:

- name: Install required packages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WorkingDirectory=/home/{{ user }}/movement
Environment="DOT_MOVEMENT_PATH=/home/{{ user }}/.movement"
Environment="CONTAINER_REV={{ rev }}"
Environment="MAPTOS_CHAIN_ID={{ chain_id }}"
Environment="MOVEMENT_SYNC={{ movement_sync }}"
#Environment="MOVEMENT_SYNC={{ movement_sync }}"

Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_PROTOCOL={{ movement_da_light_node_connection_protocol }}"
Environment="MOVEMENT_DA_LIGHT_NODE_CONNECTION_HOSTNAME={{ movement_da_light_node_connection_hostname }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
chain_id: "250"

movement_da_light_node_connection_protocol: "https"
movement_da_light_node_connection_hostname: "movement-celestia-da-light-node.testnet.bardock.movementlabs.xyz"
movement_da_light_node_connection_hostname: "m1-da-light-node.testnet.bardock.movementnetwork.xyz"
movement_da_light_node_connection_port: "443"

aws_region: "us-west-1"
Expand Down

0 comments on commit ac7a5db

Please sign in to comment.