wait4x

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0

README

Wait4X

Build Status Coverage Status Go Report Card Docker Pulls Go Reference

Table of Contents

Introduction

Wait4X is a cli tool to wait for everything! It can be wait for a port to open or enter to rquested state.

Features:

  • Checking TCP connection
  • Checking HTTP connection and also status code and response body
  • Checking Redis connection (Ping request) and key existence
  • Checking MySQL connection
  • Checking PostgreSQL connection

Installation

There are many different methods to install Wait4X

with Docker

Wait4X provides automatically updated Docker images within Docker Hub. It is possible to always use the latest stable tag.

Pull the image from the docker index.

docker pull atkrad/wait4x:latest

then you can launch the wait4x container.

docker run --rm --name='wait4x' \
    atkrad/wait4x:latest --help
From binary

Choose the file matching the destination platform from the release page, copy the URL and replace the URL within the commands below:

curl -L https://github.com/atkrad/wait4x/releases/latest/download/wait4x-linux-amd64 -o /usr/local/bin/wait4x
chmod +x /usr/local/bin/wait4x
Verify SHA256 Checksum

Wait4X generates checksum for all binaries with sha256sum to prevent against unwanted modification of binaries. To validate the binary, download the checksum file which ends in .sha256sum for the binary you downloaded and use the sha256sum command line tool.

curl -SLO https://github.com/atkrad/wait4x/releases/latest/download/wait4x-linux-amd64.sha256sum
sha256sum --check wait4x-linux-amd64.sha256sum
From package

You can find the Wait4X package in some Linux distributions.

Packaging status

On Alpine Linux

You can install the wait4x package from the official sources:

apk add wait4x
On Arch Linux (AUR)

You can install the wait4x package from the Arch User Repository:

yay -S wait4x

Directories

Path Synopsis
cmd
wait4x command
internal
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL