The pingcheck
is a Go application designed to provide simple endpoints for ping checks. The application reads a YAML file containing a list of checks and pings and provides an endpoint to check the status of the checks.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Go (version 1.20 or later)
A step-by-step series of examples that tell you how to get a development environment running.
-
Clone the repository
git clone https://github.com/switzerchees/stock-publisher.git cd stock-publisher
-
Build the application
go build .
-
Run the application
./pingcheck
CHECKS_FILE
: The Path to the checks file (default:data/checks.yml
)PINGS_FILE
: The Path to the pings file (default:data/pings.yml
)
docker build -t pingcheck .
docker run -p 1234:1234 -v ./checks.yml:/app/data/checks.yml pingcheck
docker run -p 1234:1234 switzerchees/pingcheck