A dockerized REST "Hello World" written in C++.
The code uses CPPRestSDK and is partially based on this sample.
The sample now runs on MacOS and Linux, Windows is not tested
- Install XCode.
brew install git cmake boost
./libs/build_dependencies.sh
cmake -DCMAKE_BUILD_TYPE=Release . && cmake --build .
- Replace Release with Debug for a build with debug symbols../crest <PORT>
docker-compose build && docker-compose up
- Re-build the container after changing code:
docker-compose down && docker-compose build && docker-compose up
The very first build will take several minutes as it e.g. builds a more recent version of CMake from source. Subsequent builds will only re-compile the code in /app
.