AliveImage

command module
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 7 Imported by: 0

README

Alive Image

CI Docker Image Version (latest semver) Repo Size Docker Image Size (tag) Docker Pulls

A simple docker image based on go and docker that serves a json response with the uptime of the container.

Made using go and docker.

Image available on Docker Hub and Github Container Registry.

Environment Variables

  • PORT: The port to serve the response. Default: 80

Usage

docker run -d -p 80:80 -e PORT=80 --name aliveImage divkix/aliveimage

Build and Run

Build:

docker build -t aliveimage-local .

Run:

docker run -d -p 80:80 -e PORT=80 --name aliveImage aliveimage-local

Test

curl localhost

By default, the image will serve a json response with the following content: {"status": "alive", "uptime": "1m 0s"}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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