[tool] Add the codespace container of rt-thread
This commit is contained in:
parent
525417085b
commit
bc767aa2d8
|
@ -0,0 +1,46 @@
|
||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
ARG DEST_DIR=/root
|
||||||
|
|
||||||
|
WORKDIR ${DEST_DIR}
|
||||||
|
|
||||||
|
#system
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
RUN apt-get upgrade -y
|
||||||
|
|
||||||
|
RUN apt-get install -y vim git wget python3 python-is-python3 pip gcc-arm-none-eabi scons libncurses5-dev
|
||||||
|
|
||||||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-system-arm
|
||||||
|
|
||||||
|
#env
|
||||||
|
RUN mkdir /root/.env
|
||||||
|
|
||||||
|
RUN mkdir /root/.env/tools
|
||||||
|
|
||||||
|
RUN mkdir /root/.env/packages
|
||||||
|
|
||||||
|
RUN mkdir /root/.env/packages/packages
|
||||||
|
|
||||||
|
RUN mkdir /root/.env/tools/scripts
|
||||||
|
|
||||||
|
RUN touch /root/.env/packages/Kconfig
|
||||||
|
|
||||||
|
RUN echo 'source "$PKGS_DIR/packages/Kconfig"' > /root/.env/packages/Kconfig
|
||||||
|
|
||||||
|
RUN git clone https://github.com/RT-Thread/env.git /root/.env/tools/scripts/
|
||||||
|
|
||||||
|
RUN git clone https://github.com/RT-Thread/packages.git /root/.env/packages/packages/
|
||||||
|
|
||||||
|
ENV PATH="/root/.env/tools/scripts:$PATH"
|
||||||
|
|
||||||
|
RUN pip install requests -qq
|
||||||
|
|
||||||
|
ENV RTT_EXEC_PATH=/usr/bin
|
||||||
|
|
||||||
|
ENV RTT_CC=gcc
|
||||||
|
|
||||||
|
WORKDIR /root
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||||||
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/ubuntu
|
||||||
|
// How to use this container: https://club.rt-thread.org/ask/article/d25fb0a88165f166.html
|
||||||
|
{
|
||||||
|
"name": "RT-THREAD QEMU",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.defaultProfile.linux": "bash"
|
||||||
|
},
|
||||||
|
"extensions": [
|
||||||
|
"ms-vscode.cpptools"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue