Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
beagle-rcache-image
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
market
beagle-rcache-image
Commits
e482f6ee
Commit
e482f6ee
authored
Jan 09, 2023
by
罗永亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update entrypoint.sh
parent
609751ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
entrypoint.sh
entrypoint.sh
+3
-4
No files found.
entrypoint.sh
View file @
e482f6ee
...
@@ -14,6 +14,8 @@ apply_permissions() {
...
@@ -14,6 +14,8 @@ apply_permissions() {
common_operation
()
{
common_operation
()
{
mkdir
-p
"
${
DATA_DIR
}
"
mkdir
-p
"
${
DATA_DIR
}
"
mkdir
-p
"/etc/redis/external.conf.d"
touch
-p
"/etc/redis/external.conf.d/redis-additional.conf"
}
}
set_redis_password
()
{
set_redis_password
()
{
...
@@ -33,7 +35,6 @@ redis_mode_setup() {
...
@@ -33,7 +35,6 @@ redis_mode_setup() {
if
[[
"
${
SETUP_MODE
}
"
==
"cluster"
]]
;
then
if
[[
"
${
SETUP_MODE
}
"
==
"cluster"
]]
;
then
{
{
echo
cluster-enabled
yes
echo
cluster-enabled
yes
echo
cluster-node-timeout 5000
echo
cluster-require-full-coverage no
echo
cluster-require-full-coverage no
echo
cluster-migration-barrier 1
echo
cluster-migration-barrier 1
echo
cluster-config-file
"
${
DATA_DIR
}
/nodes.conf"
echo
cluster-config-file
"
${
DATA_DIR
}
/nodes.conf"
...
@@ -108,9 +109,7 @@ main_function() {
...
@@ -108,9 +109,7 @@ main_function() {
redis_mode_setup
redis_mode_setup
persistence_setup
persistence_setup
tls_setup
tls_setup
if
[[
-f
"
${
EXTERNAL_CONFIG_FILE
}
"
]]
;
then
external_config
external_config
fi
start_redis
start_redis
}
}
...
...
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