An error occurred while fetching merge requests data.
Commit e97c0c38 authored by Wen Wei Li's avatar Wen Wei Li

test

parent bc6416c4
FROM ubuntu:19.04 as builder
FROM ubuntu:18.04 as builder
ARG CONSTELLATION_VERSION=0.3.5
ARG QUORUM_VERSION=2.2.3
......
......@@ -5,22 +5,24 @@
# Port prefix
port_range=61000
rpc_start_port=$((port_range+100))
node_start_port=$((port_range+200))
raft_start_port=$((port_range+300))
constellation_start_port=$((port_range+400))
#rpc_start_port=$((port_range+100))
#node_start_port=$((port_range+200))
#raft_start_port=$((port_range+300))
#constellation_start_port=$((port_range+400))
# Old version
#rpc_start_port=22000
#node_start_port=25000
#raft_start_port=28000
#constellation_start_port=32000
rpc_start_port=23000
node_start_port=24000
raft_start_port=25000
ws_start_port=26000
constellation_start_port=27000
# Default port number
raft_port=50400
constellation_port=9000
rlp_port=30303
rpc_port=8545
ws_port=8546
#Disable constellation node
use_constellation=false
......@@ -31,6 +33,7 @@ subnet="172.14.0.0/16"
# Use docker host network for RLP connection.
use_host_net=true
# Interface IP for RLP listening when using docker host network
interface_ip="192.168.2.100"
......@@ -38,10 +41,10 @@ interface_ip="192.168.2.100"
total_nodes=5
# Signer nodes for Clique and IBFT
signer_nodes=4
signer_nodes=7
# Consensus engine ex. raft, clique, istanbul
consensus=clique
consensus=raft
# Block period for Clique and IBFT
block_period=0
......@@ -56,7 +59,7 @@ service=n1
alloc_ether=true
node_name_prefix=master
auto_start_containers=false
auto_start_containers=true
########################################################################
......
......@@ -132,6 +132,7 @@ do
rpc_port=$((n+rpc_start_port))
raft_port=$((n+raft_start_port))
rlp_port=$((n+node_start_port))
ws_port=$((n+node_ws_port))
fi
qd=qdata_$n
......@@ -312,6 +313,7 @@ do
rpc_port=$((n+rpc_start_port))
raft_port=$((n+raft_start_port))
rlp_port=$((n+node_start_port))
ws_port=$((n+ws_start_port))
if [[ "$use_constellation" == "true" ]]; then
constellation_port=$((constellation_start_port+n))
......@@ -344,6 +346,7 @@ do
| sed s/{raft_port}/${raft_port}/g \
| sed s/{rpc_port}/${rpc_port}/g \
| sed s/{rlp_port}/${rlp_port}/g \
| sed s/{ws_port}/${ws_port}/g \
| sed "s/{node_name}/${node_name_prefix}-$n/g" \
| sed "s/{bootnode}/--bootnodes ${bootnode}/g" \
> $qd/start-node.sh
......@@ -400,6 +403,7 @@ do
restart: 'always'
volumes:
- './$qd:/qdata'
- '/etc/localtime:/etc/localtime'
user: '$uid:$gid'
EOF
if [ "$use_host_net" = "true" ]; then
......@@ -415,6 +419,7 @@ EOF
- $((n+rpc_start_port)):8545
- $((n+node_start_port)):30303
- $((n+raft_start_port)):50400
- $((n+ws_start_port)):8546
- $((n+constellation_start_port)):9000
EOF
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment