Skip to content

Instantly share code, notes, and snippets.

@iynere
Last active January 28, 2021 10:12
Show Gist options
  • Save iynere/0e48aca3048ea5ff1ee1d05629f3d527 to your computer and use it in GitHub Desktop.
Save iynere/0e48aca3048ea5ff1ee1d05629f3d527 to your computer and use it in GitHub Desktop.
redis 2.8.4 Dockerfile: https://hub.docker.com/r/iynere/redis
FROM redis:2.8.6
# downgrade to Redis 2.8.4
WORKDIR /usr/local/bin
# http://grainier.net/how-to-uninstall-redis-server-from-ubuntu
RUN rm -r redis-benchmark redis-check-aof redis-check-dump redis-cli redis-sentinel redis-server
WORKDIR /
# http://grainier.net/how-to-install-redis-in-ubuntu
RUN apt-get update
RUN echo Y | apt-get install build-essential
RUN apt-get install wget
RUN wget http://download.redis.io/releases/redis-2.8.4.tar.gz
RUN tar xzf redis-2.8.4.tar.gz
RUN rm redis-2.8.4.tar.gz
WORKDIR redis-2.8.4
RUN make
RUN make install
WORKDIR utils
# install redis background daemon
RUN echo enter | ./install_server.sh
# set redis to start automatically on launch
RUN update-rc.d redis_6379 defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment