Sign inSign up

henrikbaerbak/cookie

By henrikbaerbak

Updated about 9 years ago

Image
0

445

henrikbaerbak/cookie repository overview

A 'cookie' service: provides random fortune cookies or quotes as a web service, returning JSON encoded quotes.

Start it

docker run -d -p 7666:7666 --rm henrikbaerbak/cookie 

To test, try

http localhost:7666/cookie/0

Or you may try a specific number as path, to get a specific cookie.

It also contains Einstein, Kirkegaard, and Churchill quotes. For instance to start einstein quote service

docker run -d -p 6777:6777 --rm henrikbaerbak/cookie quote -Dapipath=/albert -Ddbname=database/albert_einstein.txt

For full description, review the 'build.xml' file in the /root/cookie folder in the container, and review the database folder for the right 'databases'.

The default port is 6777, it is only the original Dockerfile which rewired the cookie port to 7666.

@author: The source code is in /vault/teach/reexam/CloudArchE16ReReExam/QuoteService

Tag summary

Content type

Image

Digest

Size

207.9 MB

Last updated

about 9 years ago

docker pull henrikbaerbak/cookie