Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 898 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 898 Bytes

Who am I, Go?

Simple HTTP project written in Node

See other Who am I? options

Docker

Build Docker image

$ docker build -t marcopollivier/whoami:node-latest .

or Download the Docker Image

Push Docker Image

$ docker push marcopollivier/whoami:node-latest

Run Docker container

$ docker run --name whoami_go -d -p 8082:8082 marcopollivier/whoami:node-latest

API REST

Response

  • me: hostname (container ID for example)
  • timestamp: execution start time
{
  "me": "RJ-MB2680.lan",
  "timestamp": "2019-02-12T10:00:00.000Z"
}