Memcached 설정 예제
이 가이드는 Memcached 의존성이 있는 프로젝트를 위한 지속적 통합(CI) 파이프라인 설정 방법을 다뤄요. Drone이 처음이라면 먼저 튜토리얼과 빌드 설정 가이드를 읽어 보세요.
출처: Drone CI Docs
본문
기본 예제
아래 예제에서는 Memcached 서비스 컨테이너를 띄우는 파이프라인을 보여줘요. 서버는 localhost:11211에서 접근할 수 있어요.
kind: pipeline
type: kubernetes
name: default
steps:
- name: test
image: ubuntu
commands:
- apt-get update -qq
- apt-get install -y -qq telnet > /dev/null
- (sleep 1; echo "stats"; sleep 2; echo "quit";) | telnet localhost 11211 || true
services:
- name: cache
image: memcached:alpine
command: [ -vv ]