wait4x

module
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0

README

Wait4X

Build Status codecov 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 install Wait4X from package, currentlly we only support Alpine Linux.

Alpine Linux

Currently you can find it in edge repository so you have to ensure the repository has enabled. (Repository pinning)

apk add wait4x@edgecommunity

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