datastax / diagnostic-collection

Diagnostic Collector for Apache Cassandra
Apache License 2.0
28 stars 35 forks source link

ninja-fix: container id changed name on macos from ds-collector-tests_cassandra-00_1 to ds-collector-tests-cassandra-00-1 #113

Closed michaelsembwever closed 2 years ago

michaelsembwever commented 2 years ago

It's more than just the container ID change, the macos docker outputs docker-compose ps differently. Instead of

docker-compose ps
              Name                             Command                       State                                    Ports                          
-----------------------------------------------------------------------------------------------------------------------------------------------------
ds-collector-tests_bastion_1        sleep infinity                   Up                                                                              
ds-collector-tests_cassandra-00_1   /bin/sh -c ( [ -z ${CASSAN ...   Up (health: starting)   22/tcp, 7000/tcp, 7001/tcp, 7199/tcp, 9042/tcp, 9160/tcp
ds-collector-tests_cassandra-01_1   /bin/sh -c ( [ -z ${CASSAN ...   Up (health: starting)   22/tcp, 7000/tcp, 7001/tcp, 7199/tcp, 9042/tcp, 9160/tcp
ds-collector-tests_cassandra-02_1   /bin/sh -c ( [ -z ${CASSAN ...   Up (health: starting)   22/tcp, 7000/tcp, 7001/tcp, 7199/tcp, 9042/tcp, 9160/tcp

we get

NAME                                COMMAND                  SERVICE             STATUS              PORTS
ds-collector-tests-bastion-1        "sleep infinity"         bastion             running             
ds-collector-tests-cassandra-00-1   "/bin/sh -c '( [ -z …"   cassandra-00        running (healthy)   9160/tcp