Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 892 Bytes

README.md

File metadata and controls

47 lines (31 loc) · 892 Bytes

cppweb

Web Server tutorial with Crow C++ web microframework.

Docker command cheatsheet (in order of appearance)

Build in cppbox

docker build -t cppbox .

Run cppbox bash to check boost library

docker run -ti cppbox:latest bash

Add volume in /cppweb

docker run -v %CD%:/usr/src/cppweb -ti cppbox:latest bash

Build with cmake in container /usr/src/cppweb/hello_crow/build

cmake .. && make

Launch server from /cppweb

docker run -v %CD%:/usr/src/cppweb -p 18080:18080 -e PORT=18080 hello_crow:latest /usr/src/cppweb/hello_crow/build/hello_crow

Build in /cppweb/hello_crow

docker build --rm --squash --no-cache -t hello_crow:latest .

Start with mongoDB

docker run -p 18080:18080 -e PORT=18080 -e MONGODB_URI="mongodb://heroku_2vnmsbhm:uvornffhu2qgoc2980lttcdq8l@ds231070.mlab.com:31070/heroku_2vnmsbhm" hello_crow:latest