Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
bltdc
dc-common
Commits
acc23ede
Commit
acc23ede
authored
Mar 18, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CD/CI
parent
f7dc2b01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
docker-entrypoint.sh
data-zookeeper/docker-entrypoint.sh
+2
-5
No files found.
data-zookeeper/docker-entrypoint.sh
View file @
acc23ede
...
...
@@ -25,10 +25,6 @@ if [[ ! -f "$ZOO_CONF_DIR/zoo.cfg" ]]; then
echo
"autopurge.purgeInterval=
$ZOO_AUTOPURGE_PURGEINTERVAL
"
>>
"
$CONFIG
"
echo
"maxClientCnxns=
$ZOO_MAX_CLIENT_CNXNS
"
>>
"
$CONFIG
"
echo
"server.1=172.31.255.8:2888:3888"
>>
"
$CONFIG
"
echo
"server.2=172.31.255.222:2888:3888"
>>
"
$CONFIG
"
echo
"server.3=172.31.255.219:2888:3888"
>>
"
$CONFIG
"
for
server
in
$ZOO_SERVERS
;
do
echo
"
$server
"
>>
"
$CONFIG
"
done
...
...
@@ -36,7 +32,7 @@ fi
# Write myid only if it doesn't exist
if
[[
!
-f
"
$ZOO_DATA_DIR
/myid"
]]
;
then
echo
"
${
ZOO_MY_ID
:
2
}
"
>
"
$ZOO_DATA_DIR
/myid"
echo
"
${
ZOO_MY_ID
:
-
1
}
"
>
"
$ZOO_DATA_DIR
/myid"
fi
exec
"
$@
"
\ No newline at end of file
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