This docker image is the development environment for it, the source code of the RT-Thread is not included, just the toolchain:
RT-Thread is an open source RTOS powering millions of device, created at 2006, its repository is https://github.com/RT-Thread/rt-thread .
docker pull pinxue/rt-env:clang6_opt_gcc
sh build.sh xgfw
git clone --depth 1 https://github.com/RT-Thread/rt-threadin docker container. Or just put somewhere outside the docker, run_in.sh assume it is ../rt-thread (macOS/Linux), run_in.bat assume .\rt-thread (Windows).
docker run --name rtenv --rm -it --privileged -p 8181:8181 \ -v `pwd`:/home/rtt/rt-thread \ pinxue/rtenv:clang6_opt_gcc \ bash
Assume you have cloned RT-Thread in
docker run --name rtenv --rm -it --privileged -p 8181:8181 -v %~dp0rt-thread:/home/rtt/rt-thread pinxue/rtenv:clang6_opt_gcc bash
Please cat ~/README.md once you get in docker.
The source of Dockerfile and some utility scripts can be found at https://github.com/pinxue/rtenv-in-docker
If you are working on a chip of other architecture, like aarch64, risc-v, xtensa, mips, x86, etc. you need download the toolchain and map into docker volume, take the aa64run_in.sh script as an example.
You may use this docker env just like a command, just take a look at analyzer_in.sh.