Skip to content

Instantly share code, notes, and snippets.

@switzer
Last active August 29, 2015 13:56
Show Gist options
  • Save switzer/8792691 to your computer and use it in GitHub Desktop.
Save switzer/8792691 to your computer and use it in GitHub Desktop.
Inherited switzer/redis Dockerfile
FROM switzer/redis
MAINTAINER Scott Switzer <[email protected]>
RUN cp /usr/src/redis-$REDIS_VERSION/redis.conf /etc
RUN sed -i "s/port 6379/port 0/" /etc/redis.conf;\
sed -i "s/# unixsocket \/tmp\/redis.sock/unixsocket \/tmp\/redis.sock/" /etc/redis.conf;\
sed -i "s/# unixsocketperm 755/unixsocketperm 777/" /etc/redis.conf;\
sed -i "s/# slaveof <masterip> <masterport>/slaveof admin-cache.internal.sunblock.io 6379/" /etc/redis.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment