summaryrefslogtreecommitdiff
path: root/doc/ci/services/redis.md
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-25 14:41:14 +0100
committerAchilleas Pipinellis <axilleas@axilleas.me>2015-12-08 18:25:24 +0200
commit4f074aaa14faa8a866f18a80f58b66cd023a141f (patch)
treee71668439dd0680336630f57dbdb356eb99e57f1 /doc/ci/services/redis.md
parent033947de90163aeadf0b1ae2c0f5be1b8529088b (diff)
downloadgitlab-ce-4f074aaa14faa8a866f18a80f58b66cd023a141f.tar.gz
Introduce CI documentation for services and languages
Diffstat (limited to 'doc/ci/services/redis.md')
-rw-r--r--doc/ci/services/redis.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/ci/services/redis.md b/doc/ci/services/redis.md
new file mode 100644
index 00000000000..523634a457e
--- /dev/null
+++ b/doc/ci/services/redis.md
@@ -0,0 +1,40 @@
+## Using Redis
+
+It's possible to use Redis database test your apps during builds.
+
+### Use Redis with Docker executor
+
+If you are using our Docker integration you basically have everything already.
+
+1. Add this to your `.gitlab-ci.yml`:
+
+ services:
+ - redis
+
+2. Configure your application to use the database:
+
+ Host: redis
+
+3. You can also use any other available on [DockerHub](https://hub.docker.com/_/redis/). For example: `redis:2.6`.
+
+Example: https://gitlab.com/gitlab-examples/redis/blob/master/.gitlab-ci.yml
+
+### Use Redis with Shell executor
+
+It's possible to use Redis on manually configured servers that are using GitLab Runner with Shell executor.
+
+1. First install the Redis server:
+
+ sudo apt-get install redis-server
+
+2. Try to connect to the server:
+
+ # Try connecting the the Redis server
+ sudo -u gitlab-runner -H redis-cli
+
+ # Quit the session
+ 127.0.0.1:6379> quit
+
+4. Configure your application to use the database:
+
+ Host: localhost