Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #0.
- sudo apt update -y && sudo apt upgrade -y
- for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
- sudo apt-get update
- sudo apt-get install ca-certificates curl gnupg
- sudo install -m 0755 -d /etc/apt/keyrings
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
- sudo chmod a+r /etc/apt/keyrings/docker.gpg
- echo \
- "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
- "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
- sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullY
- sudo apt update -y && sudo apt upgrade -y
- sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- # Test Docker
- sudo docker run hello-world
- #1.
- curl -sSL https://raw.githubusercontent.com/zunxbt/installation/main/node.sh | bash
- #2.
- sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- #3.
- sudo systemctl start docker
- sudo systemctl enable docker
- #4.
- bash -i <(curl -s https://install.aztec.network)
- #5.
- #nano /root/.bash_profile
- #6.
- #export PATH=$PATH:/root/.aztec/bin
- #7.
- source /root/.bash_profile
- #8.
- aztec-up alpha-testnet
- #9.
- aztec --version
- #10.
- mkdir -p ~/aztec-data/{sequencer,prover,broker}
- #11.
- mkdir ~/aztec-nodes
- cd ~/aztec-nodes
- #12.
- nano docker-compose.yml
- #13.
- version: "3.8"
- services:
- # Full Node + Sequencer by TRTtheSalad
- sequencer-node:
- image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
- network_mode: host
- environment:
- ETHEREUM_HOSTS: "https://ethereum-sepolia-rpc.publicnode.com"
- L1_CONSENSUS_HOST_URLS: "https://ethereum-sepolia-beacon-api.publicnode.com"
- VALIDATOR_PRIVATE_KEY: "PRIVATE_KEY>"
- P2P_IP: "<YOUR_VPS_IP>"
- DATA_DIRECTORY: /data/sequencer
- LOG_LEVEL: debug
- entrypoint: >
- sh -c 'node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --network alpha-testnet --node --archiver --sequencer'
- volumes:
- - ~/aztec-data/sequencer:/data/sequencer
- # Prover Node
- prover-node:
- image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
- command:
- - node
- - --no-warnings
- - /usr/src/yarn-project/aztec/dest/bin/index.js
- - start
- - --prover-node
- - --archiver
- - --network
- - alpha-testnet
- depends_on:
- - prover-broker
- environment:
- ETHEREUM_HOSTS: "https://ethereum-sepolia-rpc.publicnode.com"
- L1_CONSENSUS_HOST_URL: "https://ethereum-sepolia-beacon-api.publicnode.com"
- PROVER_BROKER_HOST: http://prover-broker:8080
- PROVER_PUBLISHER_PRIVATE_KEY: "<PRIVATE_KEY>"
- DATA_DIRECTORY: /data/prover
- LOG_LEVEL: info
- volumes:
- - ~/aztec-data/prover:/data/prover
- # Prover Broker
- prover-broker:
- image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
- command:
- - node
- - --no-warnings
- - /usr/src/yarn-project/aztec/dest/bin/index.js
- - start
- - --prover-broker
- - --network
- - alpha-testnet
- environment:
- ETHEREUM_HOSTS: "https://ethereum-sepolia-rpc.publicnode.com"
- DATA_DIRECTORY: /data/broker
- LOG_LEVEL: info
- volumes:
- - ~/aztec-data/broker:/data/broker
- # Prover Agent
- prover-agent:
- image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
- command:
- - node
- - --no-warnings
- - /usr/src/yarn-project/aztec/dest/bin/index.js
- - start
- - --prover-agent
- - --network
- - alpha-testnet
- environment:
- PROVER_BROKER_HOST: http://prover-broker:8080
- PROVER_ID: "<WALLET_ADDRESS>"
- PROVER_AGENT_COUNT: "1"
- LOG_LEVEL: info
- #14.
- docker-compose up -d
- #15.
- aztec add-l1-validator \
- --l1-rpc-urls https://ethereum-sepolia-rpc.publicnode.com\
- --private-key <PRIVATE_KEY> \
- --attester <WALLET_ADDRESS> \
- --proposer-eoa <WALLET_ADDRESS> \
- --staking-asset-handler 0xF739D03e98e23A7B65940848aBA8921fF3bAc4b2 \
- --l1-chain-id 11155111
- #16.
- docker-compose logs -f sequencer-node
- #17.
- docker-compose logs -f prover-node
- https://aztec.nethermind.io/explore
Advertisement
Add Comment
Please, Sign In to add comment