[
  {
    "path": "Dockerfile",
    "content": "#\n# Redis Dockerfile\n#\n# https://github.com/dockerfile/redis\n#\n\n# Pull base image.\nFROM dockerfile/ubuntu\n\n# Install Redis.\nRUN \\\n  cd /tmp && \\\n  wget http://download.redis.io/redis-stable.tar.gz && \\\n  tar xvzf redis-stable.tar.gz && \\\n  cd redis-stable && \\\n  make && \\\n  make install && \\\n  cp -f src/redis-sentinel /usr/local/bin && \\\n  mkdir -p /etc/redis && \\\n  cp -f *.conf /etc/redis && \\\n  rm -rf /tmp/redis-stable* && \\\n  sed -i 's/^\\(bind .*\\)$/# \\1/' /etc/redis/redis.conf && \\\n  sed -i 's/^\\(daemonize .*\\)$/# \\1/' /etc/redis/redis.conf && \\\n  sed -i 's/^\\(dir .*\\)$/# \\1\\ndir \\/data/' /etc/redis/redis.conf && \\\n  sed -i 's/^\\(logfile .*\\)$/# \\1/' /etc/redis/redis.conf\n\n# Define mountable directories.\nVOLUME [\"/data\"]\n\n# Define working directory.\nWORKDIR /data\n\n# Define default command.\nCMD [\"redis-server\", \"/etc/redis/redis.conf\"]\n\n# Expose ports.\nEXPOSE 6379\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) Dockerfile Project\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "## Redis Dockerfile\n\n\nThis repository contains **Dockerfile** of [Redis](http://redis.io/) for [Docker](https://www.docker.com/)'s [automated build](https://registry.hub.docker.com/u/dockerfile/redis/) published to the public [Docker Hub Registry](https://registry.hub.docker.com/).\n\n\n### Base Docker Image\n\n* [dockerfile/ubuntu](http://dockerfile.github.io/#/ubuntu)\n\n\n### Installation\n\n1. Install [Docker](https://www.docker.com/).\n\n2. Download [automated build](https://registry.hub.docker.com/u/dockerfile/redis/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull dockerfile/redis`\n\n   (alternatively, you can build an image from Dockerfile: `docker build -t=\"dockerfile/redis\" github.com/dockerfile/redis`)\n\n\n### Usage\n\n#### Run `redis-server`\n\n    docker run -d --name redis -p 6379:6379 dockerfile/redis\n\n#### Run `redis-server` with persistent data directory. (creates `dump.rdb`)\n\n    docker run -d -p 6379:6379 -v <data-dir>:/data --name redis dockerfile/redis\n\n#### Run `redis-server` with persistent data directory and password.\n\n    docker run -d -p 6379:6379 -v <data-dir>:/data --name redis dockerfile/redis redis-server /etc/redis/redis.conf --requirepass <password>\n\n#### Run `redis-cli`\n\n    docker run -it --rm --link redis:redis dockerfile/redis bash -c 'redis-cli -h redis'\n"
  }
]