I am trying to change my config file in order to run tests using a multiple docker executor, according to https://circleci.com/docs/2.0/executor-types/#using-multiple-docker-images
In particular, I am launching cassandra, redis, etherpad and ethercalc, each on its container. However, ethercalc and etherpad currently exit imediately because the database takes a while to set up. I usually overcome this the wrong way, meaning that I run them with “restart: always” (using docker-compose), which relaunches the docker a second time (or a third) until the database is listening for connections and the services run as expected.
My question is: is there a way to tell CCI to restart the images? To be clear, what I would like to do is something like this:
jobs: test: docker: # Primary container image where all steps run. - image: "node:10-alpine" - image: "redis:3.2.8-alpine" - image: "oaeproject/oae-elasticsearch-docker" - image: "oaeproject/oae-cassandra-docker" - image: "oaeproject/oae-etherpad-docker:next" restart: always - image: "oaeproject/oae-ethercalc-docker:next" restart: always
Thank you in advance.