/dbwait

Primary LanguageRust

dbwait

Simple tool to wait until dbs are alive

Usages

    dbwait <db_urls>... --timeout <timeout>

The following command wait until both db1 and db2 are available (with 10s timeout)

  dbwait -t 10 postgresql://db1:5432 postgresql://db2:5432

Use in Dockerfile

RUN curl -L https://github.com/intellihr/dbwait/releases/download/v0.0.1/dbwait > /usr/local/bin/dbwait && \
    chmod +x /usr/local/bin/dbwait