I am putting together simple samples for various database tools and software (only official docker images at this time). Does anyone have enough experience with Cassandra to provide a simple pipeline that is able to start and ping a Cassandra database service, using the official Cassandra images? Ideally something similar to this Mongo example:
kind: pipeline
name: default
steps:
- name: ping
image: mongo:4
commands:
- sleep 5
- mongo --host mongo --eval "db.version()"
services:
- name: mongo
image: mongo:4
command: [ --smallfiles ]
or similar to this postgres example:
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: test
image: postgres:9-alpine
commands:
- sleep 10
- psql -U postgres -d test -h database -c "SELECT version();"
services:
- name: database
image: postgres
environment:
POSTGRES_DB: test
POSTGRES_USER: postgres
...