Help Wanted: Simple InfluxDB Sample

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 InfluxDB to provide a simple pipeline that is able to start and ping an InfluxDB database service, using the official InfluxDB Docker images? Ideally something similar to this Postgres example:

kind: pipeline
name: default

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:9-alpine
  environment:
    POSTGRES_USER: postgres
    POSTGRES_DB: test

In most cases you don’t really interact with InfluxDB using CLI client, rather http API. One might be:
curl -G “http://localhost:8086/query” --data-urlencode “q=show databases” Mon Nov 19 16:15:20 2018
{“results”:[{“statement_id”:0,“series”:[{“name”:“databases”,“columns”:[“name”],“values”:[["_internal"]]}]}]}

or simple ping
curl -sl -I http://localhost:8086/ping
Mon Nov 19 16:17:22 2018
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.7.1
Date: Mon, 19 Nov 2018 15:17:22 GMT
Content-Length: 19

HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 3677b2e6-ec0e-11e8-8004-0242ac110002
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.7.1
X-Request-Id: 3677b2e6-ec0e-11e8-8004-0242ac110002
Date: Mon, 19 Nov 2018 15:17:22 GMT

So:
kind: pipeline
name: default

steps: