Skip to content

C++ starter project with a CMakeLists.txt. The project is also using the boost testing libraries

License

Notifications You must be signed in to change notification settings

AndriyKalashnykov/cpp-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image CI Hits License: MIT

C++ starter project

The repository contains a C++ starter project with a CMakeLists.txt. The project is also using the boost testing libraries.

Clone repo

git clone git@github.com:AndriyKalashnykov/cpp-sample-app.git

Local usage

cd cpp-sample-app
cmake .
make
make test
./hello

Dockerifle.cpp

This docker build does the following:

  • Uses mutistage build
  • Uses GCC 9.2.0 as a build image
  • Installs cmake and boost
  • Sets /app as working directory
  • Runs cmake and make
  • Uses distroless images as runtime
  • Copies hello application as nonroot user
  • Specifies an unprivileged nonroot user for running the application
  • Set the command hello to run when starting the container

Build docker image

docker build -t gcc-cpp:1.0 .

Run docker image

docker run --rm gcc-cpp:1.0

About

C++ starter project with a CMakeLists.txt. The project is also using the boost testing libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published