devbox helps you to initialize or recover c++ development enviroment in minutes
modify env.sh to your github name and email
USER_NAME="your github name"
USER_EMAIL="your github emal"
use set_env_ubuntu.sh
to complete following steps
- install git vim
- install build-esssential
- git config
- generate gpg key
Note
You must run git config --global user.signingkey $YOUR_GPG_KEY
manually
use docker image to compile your c++ project
cd 'Your Project Dir'
docker run -v `PWD`:/'Your Project DIR' --name devbox -dt ghcr.io/imotai/centos7_gcc7_build_env:0.0.1 bash
# enter container
docker run -it devbox bash
# tar the thirdpary
cd /depends && tar -zxvf thirdpary.tar.gz
cd /'Your Project DIR' && ln -sf /depends/thirdpary thirdpary
# add thirdparty to your cmake `CMAKE_PREFIX_PATH`