Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
8067cdb6
Commit
8067cdb6
authored
Aug 12, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata
parent
036203b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Dockerfile-x2ethrelay
plugin/dapp/x2ethereum/cmd/build/Dockerfile-x2ethrelay
+1
-1
allRelayerTest.sh
plugin/dapp/x2ethereum/cmd/build/allRelayerTest.sh
+3
-3
No files found.
plugin/dapp/x2ethereum/cmd/build/Dockerfile-x2ethrelay
View file @
8067cdb6
FROM ubuntu:16.04
.02
FROM ubuntu:16.04
WORKDIR /root
WORKDIR /root
COPY relayer.toml relayer.toml
COPY relayer.toml relayer.toml
...
...
plugin/dapp/x2ethereum/cmd/build/allRelayerTest.sh
View file @
8067cdb6
...
@@ -71,6 +71,7 @@ function InitAndDeploy() {
...
@@ -71,6 +71,7 @@ function InitAndDeploy() {
}
}
function
port_exist
()
{
function
port_exist
()
{
local
prot_ori
=
${
portRelayer
}
grep_port
=
$(
netstat
-tlpn
|
grep
"
\b
${
portRelayer
}
\b
"
)
grep_port
=
$(
netstat
-tlpn
|
grep
"
\b
${
portRelayer
}
\b
"
)
while
[
-n
"
$grep_port
"
]
;
do
while
[
-n
"
$grep_port
"
]
;
do
echo
"port
$portRelayer
is in use"
echo
"port
$portRelayer
is in use"
...
@@ -78,9 +79,8 @@ function port_exist() {
...
@@ -78,9 +79,8 @@ function port_exist() {
grep_port
=
$(
netstat
-tlpn
|
grep
"
\b
${
portRelayer
}
\b
"
)
grep_port
=
$(
netstat
-tlpn
|
grep
"
\b
${
portRelayer
}
\b
"
)
done
done
if
[
"
${
portRelayer
}
"
!=
"20000"
]
;
then
if
[
"
${
portRelayer
}
"
!=
"
${
prot_ori
}
"
]
;
then
line
=
$(
delete_line_show
"./docker-compose-ebrelayer.yml"
"20000:20000"
)
sed
-i
's/'
"
${
prot_ori
}
"
'/'
"
${
portRelayer
}
"
'/g'
"./docker-compose-ebrelayer.yml"
sed
-i
''
"
${
line
}
"
' a \ \ \ \ \ \ -\ "'
${
portRelayer
}
':'
${
portRelayer
}
'"'
"./docker-compose-ebrelayer.yml"
fi
fi
}
}
...
...
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