From 8e02057b67d76b30712d18139245b8db8ed1b436 Mon Sep 17 00:00:00 2001 From: Radu Date: Thu, 7 Apr 2022 10:57:57 +0300 Subject: [PATCH] Revert "Removing .dovcontainer" This reverts commit 2bda086b25cd1554048b02337df2a8f06f4a01ab. --- testFiles/gcov/.devcontainer/Dockerfile | 36 +++++++++++++++++++ .../gcov/.devcontainer/devcontainer.json | 30 ++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 testFiles/gcov/.devcontainer/Dockerfile create mode 100644 testFiles/gcov/.devcontainer/devcontainer.json diff --git a/testFiles/gcov/.devcontainer/Dockerfile b/testFiles/gcov/.devcontainer/Dockerfile new file mode 100644 index 000000000..f23a6f7ce --- /dev/null +++ b/testFiles/gcov/.devcontainer/Dockerfile @@ -0,0 +1,36 @@ +FROM espressif/idf:release-v4.3 + +ARG DEBIAN_FRONTEND=nointeractive + +RUN apt-get update \ + && apt install -y -q \ + cmake \ + git \ + libglib2.0-0 \ + libnuma1 \ + libpixman-1-0 + +RUN ./opt/esp/entrypoint.sh && pip install --no-cache-dir idf-component-manager + +# QEMU +ENV QEMU_REL=esp-develop-20210220 +ENV QEMU_SHA256=44c130226bdce9aff6abf0aeaab44f09fe4f2d71a5f9225ac1708d68e4852c02 +ENV QEMU_DIST=qemu-${QEMU_REL}.tar.bz2 +ENV QEMU_URL=https://github.com/espressif/qemu/releases/download/${QEMU_REL}/${QEMU_DIST} + +ENV LC_ALL=C.UTF-8 +ENV LANG=C.UTF-8 +ENV IDF_PYTHON_ENV_PATH=/opt/esp/python_env/idf4.3_py3.6_env + +RUN wget --no-verbose ${QEMU_URL} \ + && echo "${QEMU_SHA256} *${QEMU_DIST}" | sha256sum --check --strict - \ + && tar -xf $QEMU_DIST -C /opt \ + && rm ${QEMU_DIST} + +ENV PATH=/opt/qemu/bin:${PATH} + +RUN echo $($IDF_PATH/tools/idf_tools.py export) >> $HOME/.bashrc + +ENTRYPOINT [ "/opt/esp/entrypoint.sh" ] + +CMD ["/bin/bash"] \ No newline at end of file diff --git a/testFiles/gcov/.devcontainer/devcontainer.json b/testFiles/gcov/.devcontainer/devcontainer.json new file mode 100644 index 000000000..2d5baf556 --- /dev/null +++ b/testFiles/gcov/.devcontainer/devcontainer.json @@ -0,0 +1,30 @@ +// 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 +{ + "name": "ESP-IDF QEMU", + "build": { + "dockerfile": "Dockerfile" + }, + "settings": { + "terminal.integrated.defaultProfile.linux": "bash", + "idf.espIdfPath": "/opt/esp/idf", + "idf.customExtraPaths": "", + "idf.pythonBinPath": "/opt/esp/python_env/idf4.3_py3.6_env/bin/python", + "idf.toolsPath": "/opt/esp", + "idf.gitPath": "/usr/bin/git" + }, + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "ms-vscode.cpptools", + "espressif.esp-idf-extension" + ], + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "bash /opt/esp/entrypoint.sh", + + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + // "remoteUser": "vscodeuser" +} \ No newline at end of file