@@ -11,6 +11,9 @@ inputs:
1111 beacon_node_url :
1212 description : " The beacon node API URL to use"
1313 required : true
14+ consensus_image :
15+ description : " The docker image to use for the consensus client"
16+ required : true
1417
1518runs :
1619 using : composite
@@ -183,35 +186,35 @@ runs:
183186 if : ${{ inputs.consensus == 'teku' }}
184187 run : |
185188 echo "Starting Teku...";
186- docker run -p 5052:5052 -d --name beacon --network eth -e TEKU_REST_API_ENABLED=true -e TEKU_P2P_PORT=9000 consensys/teku:latest --rest-api-port=5052 --network=${{ inputs.network }} --log-destination=CONSOLE --initial-state=http://checkpointz:5555/eth/v2/debug/beacon/states/finalized --ee-endpoint=http://102.10.10.1:8545
189+ docker run -p 5052:5052 -d --name beacon --network eth -e TEKU_REST_API_ENABLED=true -e TEKU_P2P_PORT=9000 ${{ inputs.consensus_image }} --rest-api-port=5052 --network=${{ inputs.network }} --log-destination=CONSOLE --initial-state=http://checkpointz:5555/eth/v2/debug/beacon/states/finalized --ee-endpoint=http://102.10.10.1:8545
187190 echo "Teku is running.";
188191 - name : Run lighthouse client
189192 shell : bash
190193 if : ${{ inputs.consensus == 'lighthouse' }}
191194 run : |
192195 echo "Starting Lighthouse...";
193- docker run -p 5052:5052 --network eth -d --name beacon sigp/lighthouse:latest lighthouse bn --network=${{ inputs.network }} --datadir=/data --checkpoint-sync-url=http://checkpointz:5555 --http --http-address=0.0.0.0 --execution-endpoint=http://localhost:8545 --execution-jwt-secret-key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
196+ docker run -p 5052:5052 --network eth -d --name beacon ${{ inputs.consensus_image }} lighthouse bn --network=${{ inputs.network }} --datadir=/data --checkpoint-sync-url=http://checkpointz:5555 --http --http-address=0.0.0.0 --execution-endpoint=http://localhost:8545 --execution-jwt-secret-key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
194197 echo "Lighthouse is running.";
195198 - name : Run prysm
196199 shell : bash
197200 if : ${{ inputs.consensus == 'prysm' }}
198201 run : |
199202 echo "Starting prysm...";
200- docker run -d --name beacon --network eth -p 5052:5052 gcr.io/prysmaticlabs/prysm/beacon-chain:latest --datadir=/data --accept-terms-of-use --${{ inputs.network }} --clear-db --grpc-gateway-port=5052 --grpc-gateway-host=0.0.0.0 --execution-endpoint=http://localhost:8545 --force-clear-db --checkpoint-sync-url=http://checkpointz:5555 --genesis-beacon-api-url=http://checkpointz:5555 --grpc-gateway-port=5052
203+ docker run -d --name beacon --network eth -p 5052:5052 ${{ inputs.consensus_image }} --datadir=/data --accept-terms-of-use --${{ inputs.network }} --clear-db --grpc-gateway-port=5052 --grpc-gateway-host=0.0.0.0 --execution-endpoint=http://localhost:8545 --force-clear-db --checkpoint-sync-url=http://checkpointz:5555 --genesis-beacon-api-url=http://checkpointz:5555 --grpc-gateway-port=5052
201204 echo "Prysm is running.";
202205 - name : Run nimbus
203206 shell : bash
204207 if : ${{ inputs.consensus == 'nimbus' }}
205208 run : |
206209 echo "Starting nimbus...";
207- docker run --name beacon --network eth statusim/nimbus-eth2:amd64-latest trustedNodeSync --network=${{ inputs.network }} --trusted-node-url=http://checkpointz:5555 --backfill=false
210+ docker run --name beacon --network eth ${{ inputs.consensus_image }} trustedNodeSync --network=${{ inputs.network }} --trusted-node-url=http://checkpointz:5555 --backfill=false
208211 echo "Nimbus is running.";
209212 - name : Run lodestar
210213 shell : bash
211214 if : ${{ inputs.consensus == 'lodestar' }}
212215 run : |
213216 echo "Starting lodestar...";
214- docker run --name beacon -d --network eth -p 5052:5052 chainsafe/lodestar beacon --dataDir /data --network ${{ inputs.network }} --checkpointSyncUrl=http://checkpointz:5555 --rest --rest.address 0.0.0.0 --rest.port=5052
217+ docker run --name beacon -d --network eth -p 5052:5052 ${{ inputs.consensus_image }} beacon --dataDir /data --network ${{ inputs.network }} --checkpointSyncUrl=http://checkpointz:5555 --rest --rest.address 0.0.0.0 --rest.port=5052
215218 echo "Lodestar is running.";
216219 - name : Wait for consensus client to have checkpoint synced
217220 shell : bash
0 commit comments