Skip to content

Instantly share code, notes, and snippets.

@philippwinter
Created July 24, 2017 12:39
Show Gist options
  • Save philippwinter/9ad69dc8d0203290fde049efe701df82 to your computer and use it in GitHub Desktop.
Save philippwinter/9ad69dc8d0203290fde049efe701df82 to your computer and use it in GitHub Desktop.
workspace:
base: /go
path: src/github.com/philippwinter/test_drone
pipeline:
couchdb:
hostname: couchdb.local
image: callforamerica/couchdb
environment:
LOCAL_DEV_CLUSTER: 'true'
COUCHDB_ADMIN_USER: admin
COUCHDB_ADMIN_PASS: root
ERLANG_COOKIE: test-cookie
ports:
- "5984:5984"
- "5986:5986"
detach: true
networks:
local:
aliases:
- couchdb.local
build:
image: golang
environment:
DB_HOST: couchdb
commands:
- sleep 30
- wget --retry --retry-connrefused --waitretry=5 --timeout 5 http://$DB_HOST:5984/_users
networks:
local:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment