Add initial "redis"

This commit is contained in:
Tianon Gravi 2016-05-06 14:56:16 -07:00
parent 6d2057ff41
commit abce2cc1dd
2 changed files with 9 additions and 0 deletions

5
redis/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM redis
COPY docker-healthcheck /usr/local/bin/
HEALTHCHECK CMD ["docker-healthcheck"]

4
redis/docker-healthcheck Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
set -eo pipefail
[ "$(redis-cli ping)" = 'PONG' ]