Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
quorum-docker-Nnodes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wen Wei Li
quorum-docker-Nnodes
Commits
e97c0c38
An error occurred while fetching merge requests data.
Commit
e97c0c38
authored
5 years ago
by
Wen Wei Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
bc6416c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
Dockerfile
Dockerfile
+1
-1
Nnodes/config.sh
Nnodes/config.sh
+14
-11
Nnodes/setup.sh
Nnodes/setup.sh
+5
-0
No files found.
Dockerfile
View file @
e97c0c38
FROM
ubuntu:1
9
.04 as builder
FROM
ubuntu:1
8
.04 as builder
ARG
CONSTELLATION_VERSION=0.3.5
ARG
QUORUM_VERSION=2.2.3
...
...
This diff is collapsed.
Click to expand it.
Nnodes/config.sh
View file @
e97c0c38
...
...
@@ -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
=
fals
e
auto_start_containers
=
tru
e
########################################################################
...
...
This diff is collapsed.
Click to expand it.
Nnodes/setup.sh
View file @
e97c0c38
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment