Sign inSign up

stormcat24/aeromock-api-docker

By stormcat24

•Updated almost 11 years ago

Image
0

412

stormcat24/aeromock-api-docker repository overview

⁠aeromock-api-docker

⁠Aeromock in Docker

Aeromock⁠ is Lightweight mock web server on JVM. This docker image was made for starting up Aeromock quickly.

⁠Usage

You will only have to prepare data file directory for API reponse. Data file directory should include json format file or yaml format file.

⁠Example

Firstly, create data file directory (e.g. /path-to-path/api). Then create data file (e.g. /path-to-path/api/test.json'), as follows.

{
  "result": true
}

⁠Run

Run with binding local data file directory. Bind /path-to-path/api (Host) to /project/api (in container).

Listening port of Aeromock is 3183. Do port mapping 3183(Optional) to 3183.

$ docker run -t -i -p 3183:3183 -v /path-to-path/api:/project/api stormcat24/aeromock-api

⁠Request

Please access http://localhost:3183/test ! Server will respond json response.

Tag summary

Content type

Image

Digest

sha256:6b9c78c3d…

Size

434.5 MB

Last updated

almost 11 years ago

docker pull stormcat24/aeromock-api-docker