Sign inSign up

jihchi/alpine-iojs-echo-server

By jihchi

Updated almost 11 years ago

DEPRECATED!! Please use jihchi/node-echo-server-alpine instead.

Image
0

1.7K

jihchi/alpine-iojs-echo-server repository overview

alpine-iojs-echo-server

Dockerize jpillora/node-echo-server based on mhart/alpine-iojs:latest (with npm)

node-echo-server

An HTTP server which responds with the request in JSON.

alpine-iojs

Minimal io.js Docker Images built on Alpine Linux (20MB, or 7.5MB compressed).

$ docker images
REPOSITORY                       TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
jihchi/alpine-iojs-echo-server   latest              4197d07a4be7        38 minutes ago      38.8 MB

Getting Started

$ docker pull jihchi/alpine-iojs-echo-server
$ docker run -d -p 12345:80 jihchi/alpine-iojs-echo-server

Usage

Directly browse http://localhost:12345 or:

$ curl http://localhost:12345
{
  "ip": "192.168.59.3",
  "time": 1429261062748,
  "method": "GET",
  "url": "/",
  "body": "",
  "headers": {
    "user-agent": "curl/7.37.1",
    "host": "192.168.59.103:12345",
    "accept": "*/*"
  },
  "meta": {
    "num": 4,
    "live": 1,
    "status": 200,
    "delay": 0
  }
}

Tag summary

Content type

Image

Digest

sha256:2a4508d86

Size

13.3 MB

Last updated

almost 11 years ago

docker pull jihchi/alpine-iojs-echo-server