Skip to content
/ devbox Public

devbox helps you to initialize or recover c++ development enviroment in minutes

License

Notifications You must be signed in to change notification settings

imotai/devbox

Repository files navigation

what's devbox

devbox helps you to initialize or recover c++ development enviroment in minutes

First

modify env.sh to your github name and email

USER_NAME="your github name"
USER_EMAIL="your github emal"

Second

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

Third

use docker image to compile your c++ project

Initialize Docker

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`