Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vernemq
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stack
vernemq
Commits
ede2ef6d
Commit
ede2ef6d
authored
Nov 03, 2018
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docker-entrypoint.sh for redis container
parent
4c9f6b9f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
.gitignore
+1
-0
redis/.gitignore
+1
-0
redis/docker-entrypoint.sh
+16
-0
No files found.
.gitignore
View file @
ede2ef6d
.DS_Store
.DS_Store
node_nodules
node_nodules
.make-function
redis/.gitignore
0 → 100644
View file @
ede2ef6d
.make-function
redis/docker-entrypoint.sh
0 → 100644
View file @
ede2ef6d
#!/bin/sh
set
-e
# first arg is `-f` or `--some-option`
# or first arg is `something.conf`
if
[
"
${
1
#-
}
"
!=
"
$1
"
]
||
[
"
${
1
%.conf
}
"
!=
"
$1
"
]
;
then
set
--
redis-server
"
$@
"
fi
# allow the container to be started with `--user`
if
[
"
$1
"
=
'redis-server'
-a
"
$(
id
-u
)
"
=
'0'
]
;
then
find
.
\!
-user
redis
-exec
chown redis
'{}'
+
exec
gosu redis
"
$0
"
"
$@
"
fi
exec
"
$@
"
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