Are there any plans to support couchbase DB in pipelines builds? if it is already possible can someone guide me on how to do that?
I am able to setup a service couchabse but my problem is that after the image is deployed it has to be initiated, and AFAIK I cannot execute commands on service containers defined in the pipeline configuration file (I mean something similar to scripts option in pipelines)
Thank you.
Hi @SebCthank you for you response, I actually had some time yesterday and took a good look at my problem so instead of trying to fix it through the pipeline script I took it outside and fix the container image I am using.
The way I solved it was to build my own container with the couchbase that is configured and ready to use, upload it to the docker artifactory and in the pipeline just point to my own image of couchbase, so far this solved my problem, though with their new release of couchbase 5.0 I did not find a way to add Users through a rest or cli API, but this is a different problem.
Hey @maxim_b_, as long as couchbase is packaged up in a docker container, we can run it!
looking at https://hub.docker.com/_/couchbase/ it seems there's a relevant community maintained image.
There are no predefined services for couchbase, but that's ok, you can start your own services using the build-in Docker service.
Update your bitbucket-pipelines.yml to something like:
pipelines:
default:
- step:
script:
- docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase
- ...
services:
- docker
and you're off and running!
-Seb.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.