Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nousefreak/wait-for-it

Wait for a service to become available
https://github.com/nousefreak/wait-for-it

automation cli golang integration-testing mysql plugin redis

Last synced: 2 months ago
JSON representation

Wait for a service to become available

Awesome Lists containing this project

README

        

# wait-for-it

[![Build Status](https://travis-ci.org/NoUseFreak/wait-for-it.svg?branch=master)](https://travis-ci.org/NoUseFreak/wait-for-it)

`wait-for-it` is a cli tool to check if a service is available. It was built to run between starting docker services
and running integration tests.

The tool is plugin based, only the plugins for your specific cases are installed.

# Install

```bash
curl -sL http://bit.ly/get-wait-for-it | bash
```

# Usage

Create your config file `wait-for-it.yml`.

```yaml
services:
mysql_check:
plugin: mysql
host: localhost
parameters:
port: 3306
username: root
password: root
```

Now check if the mysql service is available.

```bash
wait-for-it
```

# Help

```bash
wait-for-it --help
```