Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/bring-a-ping
a module that says 'ping' - used to test basic docker behaviour
https://github.com/binocarlos/bring-a-ping
Last synced: 11 days ago
JSON representation
a module that says 'ping' - used to test basic docker behaviour
- Host: GitHub
- URL: https://github.com/binocarlos/bring-a-ping
- Owner: binocarlos
- Created: 2014-08-08T14:44:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-08T14:46:58.000Z (over 10 years ago)
- Last Synced: 2024-08-10T22:56:26.438Z (3 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bring-a-ping
============a half pointless module that prints a string back to the command line
used to test basic docker functionality in other modules test suites
## install
node:
```bash
$ npm install bring-a-ping -g
```docker:
```bash
$ docker pull binocarlos/bring-a-ping
```## usage
node:
```
$ bring-a-ping
ping
```docker:
```
$ docker run --rm binocarlos/bring-a-ping
ping
```You can change the string and loop over it:
```
$ bring-a-ping --string apples --timeout 2000
apples
apples
...
```## options
```
Usage: bring-a-ping [arg...]-s, --string=ping what string to ping
-t, --timeout=1000 loop and ping every X milliseconds
```## why?
Because I needed a throwaway docker image that is lightweight and throwaway.
This means in tests I can `docker pull` then `docker rmi --no-prune` and it dont take much time.
## license
MIT