projects
/
dockerfile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e4fa5a
)
redis/Dockerfile.template: Bind to all interfaces
author
W. Trevor King
<wking@tremily.us>
Fri, 27 Dec 2013 16:56:55 +0000
(08:56 -0800)
committer
W. Trevor King
<wking@tremily.us>
Thu, 2 Jan 2014 02:03:32 +0000
(18:03 -0800)
It's not much good to have a Redis container that's only listening to
localhost ;).
redis/Dockerfile.template
patch
|
blob
|
history
diff --git
a/redis/Dockerfile.template
b/redis/Dockerfile.template
index 0148eff05af34af50b350f83c8de622c7302d17b..081956feba0c17a90233ec151039fc3b0627a136 100644
(file)
--- a/
redis/Dockerfile.template
+++ b/
redis/Dockerfile.template
@@
-29,6
+29,9
@@
RUN emerge -v dev-db/redis
RUN eselect news read new
RUN rc-update add redis default
+# Bind to all interfaces
+RUN sed -i 's/bind /#bind /' /etc/redis.conf
+
# Container networking happens automatically
RUN sed -i 's/need net$/use net/' /etc/init.d/*