Example Memcached Configuration
This guide covers configuring continuous integration pipelines for projects that have a Memcached dependency. If you’re new to Drone please read our Tutorial and build configuration guides first.
Basic Example
In the below example we demonstrate a pipeline that launches a Memcached service container. The memecache server will be available at cache:11211
, where the hostname matches the service container name.
1 kind: pipeline
2 name: default
3
4 steps:
5 - name: test
6 image: ubuntu
7 commands:
8 - apt-get update -qq
9 - apt-get install -y -qq telnet > /dev/null
10 - (sleep 1; echo "stats"; sleep 2; echo "quit";) | telnet cache 11211 || true
11
12 services:
13 - name: cache
14 image: memcached:alpine
15 command: [ -vv ]