Skip to content

Commit 429f5bd

Browse files
authored
Merge pull request #64 from SergioGasquez/feature/gitpod
Feature/gitpod
2 parents a1a1b6c + 2031b8e commit 429f5bd

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.gitpod.Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Note: gitpod/workspace-base image references older version of CMake, it's necessary to install newer one
2+
FROM gitpod/workspace-base
3+
ENV LC_ALL=C.UTF-8
4+
ENV LANG=C.UTF-8
5+
ARG CONTAINER_USER=gitpod
6+
ARG CONTAINER_GROUP=gitpod
7+
ARG NIGHTLY_VERSION=nightly-2022-03-10
8+
ARG ESP_IDF_VERSION=v4.4.1
9+
ARG ESP_BOARD=esp32c3
10+
RUN sudo install-packages git curl gcc clang ninja-build libudev-dev \
11+
python3 python3-pip libusb-1.0-0 libssl-dev pkg-config libtinfo5 libpython2.7
12+
USER ${CONTAINER_USER}
13+
WORKDIR /home/${CONTAINER_USER}
14+
ENV PATH=${PATH}:/home/${CONTAINER_USER}/.cargo/bin
15+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
16+
--default-toolchain ${NIGHTLY_VERSION} -y \
17+
&& $HOME/.cargo/bin/rustup component add rust-src --toolchain ${NIGHTLY_VERSION} \
18+
&& $HOME/.cargo/bin/rustup target add riscv32imc-unknown-none-elf \
19+
&& $HOME/.cargo/bin/cargo install cargo-espflash ldproxy
20+
RUN mkdir -p ${HOME}/.espressif/frameworks/ \
21+
&& git clone --branch ${ESP_IDF_VERSION} -q --depth 1 --shallow-submodules \
22+
--recursive https://github.com/espressif/esp-idf.git \
23+
${HOME}/.espressif/frameworks/esp-idf \
24+
&& python3 ${HOME}/.espressif/frameworks/esp-idf/tools/idf_tools.py install cmake \
25+
&& ${HOME}/.espressif/frameworks/esp-idf/install.sh ${ESP_BOARD} \
26+
&& rm -rf .espressif/dist \
27+
&& rm -rf .espressif/frameworks/esp-idf/docs \
28+
&& rm -rf .espressif/frameworks/esp-idf/examples \
29+
&& rm -rf .espressif/frameworks/esp-idf/tools/esp_app_trace \
30+
&& rm -rf .espressif/frameworks/esp-idf/tools/test_idf_size
31+
ENV IDF_TOOLS_PATH=/home/${CONTAINER_USER}/.espressif

.gitpod.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
tasks:
4+
- name: Setup environment variables for ESP-IDF
5+
command: |
6+
source /home/gitpod/.espressif/frameworks/esp-idf-v4.4/export.sh > /dev/null 2>&1
7+
vscode:
8+
extensions:
9+
- matklad.rust-analyzer
10+
- tamasfe.even-better-toml
11+
- vadimcn.vscode-lldb
12+
- anwar.resourcemonitor
13+
- yzhang.markdown-all-in-one
14+
- serayuzgur.crates
15+
ports:
16+
- port: 9012
17+
visibility: public

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ with the Espressif ESP32-C3.
55

66
We suggest you start by [reading the book](https://espressif-trainings.ferrous-systems.com).
77

8+
9+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ferrous-systems/espressif-trainings)
10+
811
## Contents
912

1013
There is:

0 commit comments

Comments
 (0)