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
64270655
Unverified
Commit
64270655
authored
Dec 31, 2020
by
Abhishek Dubey
Committed by
GitHub
Dec 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cluster related commands (#2)
Signed-off-by:
iamabhishek-dubey
<
abhishekbhardwaj510@gmail.com
>
parent
f5fd96e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
entrypoint.sh
entrypoint.sh
+14
-2
No files found.
entrypoint.sh
View file @
64270655
...
...
@@ -6,6 +6,13 @@ CLUSTER_DIRECTORY=${CLUSTER_DIRECTORY:-"/opt/redis"}
PERSISTENCE_ENABLED
=
${
PERSISTENCE_ENABLED
:-
"false"
}
DATA_DIR
=
${
DATA_DIR
:-
"/data"
}
apply_permissions
()
{
chgrp
-R
0 /etc/redis
chmod
-R
g
=
u /etc/redis
chgrp
-R
0 /opt
chmod
-R
g
=
u /opt
}
common_operation
()
{
mkdir
-p
"
${
CLUSTER_DIRECTORY
}
"
mkdir
-p
"
${
DATA_DIR
}
"
...
...
@@ -58,8 +65,13 @@ persistence_setup() {
}
start_redis
()
{
echo
"Starting redis service....."
if
[[
"
${
SETUP_MODE
}
"
==
"cluster"
]]
;
then
echo
"Starting redis service in cluster mode....."
redis-server /etc/redis/redis.conf
--cluster-announce-ip
"
${
POD_IP
}
"
else
echo
"Starting redis service in standalone mode....."
redis-server /etc/redis/redis.conf
fi
}
main_function
()
{
...
...
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