Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.27 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.27 KB

servant-web

A simple servant http server

Prerequisite

building locally using stack

stack set up
stack build 

For continues development and quick feedback:

stack build --file-watch

Publish the docker-image

To publish your image to docker hub:

make

Prerequisite:

Execution

Project may run with stack run or as a docker image, and will require postgres. To bring postgres up:

./db/docker-compose up -d
docker ps ## to get the process id
docker inspect {process-id} 

Execute docker image locally

To execute to image locally:

docker run -p3000:3000 servant-web:latest

To test the deployment:

docker inspect `docker images  | awdk '{printf $3}'` | grep IP
curl -v <IP>:3000/item 

References

servant-wpg 2015 paper

docker-image

circlci build