Version 1.0.0
Language EN

RethinkDB Example

Example Yaml configuration for a project with a RethinkDB server dependency. The database server will be available at database:28015.

kind: pipeline
name: default

steps:
- name: test
  image: node:9
  commands:
  - npm install -s -g recli
  - recli -h database -j 'r.db("rethinkdb").table("stats")'

services:
- name: database
  image: rethinkdb:2
  command: [ rethinkdb, --bind, all ]
  ports:
  - 28015

Common Problems

Incorrect Hostname

You cannot use 127.0.0.1 or localhost to connect with the database. If you are unable to connect please verify you are using the correct hostname, corresponding with the container name.

Bad:

kind: pipeline
name: default

steps:
- name: test
  image: node:9
  commands:
  - npm install -s -g recli
  - recli -h localhost -j 'r.db("rethinkdb").table("stats")'

services:
- name: database
  image: rethinkdb:2
  command: [ rethinkdb, --bind, all ]
  ports:
  - 28015

Good:

kind: pipeline
name: default

steps:
- name: test
  image: node:9
  commands:
  - npm install -s -g recli
  - recli -h database -j 'r.db("rethinkdb").table("stats")'

services:
- name: database
  image: rethinkdb:2
  command: [ rethinkdb, --bind, all ]
  ports:
  - 28015

On This Page:

Getting Help

Mailing List
Search for information in the mailing list archives, or post a question.
Chat Support
Real-time chat support from maintainers and community members.