-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/gitpod #64
Merged
Merged
Feature/gitpod #64
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ac65e12
Add gitpod files
SergioGasquez bc6f0d1
Update gitpod button
SergioGasquez 4cdc64c
Add cargo tools
SergioGasquez 89c3dd0
Dont install CMake
SergioGasquez 9cadfeb
Installl ninja and cmake with idf_tools
SergioGasquez 88917a3
Format gitpod.Dockerfile
SergioGasquez d3ab0eb
Remove task
SergioGasquez da559d8
Add wokwi alias
SergioGasquez f5cfb76
Remove wokwi alias
SergioGasquez 17b4fb8
Merge branch 'feature/devcontainer' into feature/gitpod
SergioGasquez 9336a79
Update gitpod button
SergioGasquez 1de80b0
Fix ESP-IDF environment
SergioGasquez 8d26447
Intaslla ninja with install-packages
SergioGasquez 8cef46a
Delete unecesary esp-idf folders
SergioGasquez fc20d0b
Merge branch 'feature/devcontainer' into feature/gitpod
SergioGasquez c69e354
Remove installing python dependencies
SergioGasquez e50e058
Remove bindgen
SergioGasquez a3169dc
Merge branch 'ferrous-systems:main' into feature/gitpod
SergioGasquez 58fe325
Remove espmonitor and cargo-generate
SergioGasquez 650e0bc
Merge branch 'ferrous-systems:main' into feature/gitpod
SergioGasquez 67a8452
Update target
SergioGasquez 2031b8e
Update esp-idf version and installation paths
SergioGasquez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Note: gitpod/workspace-base image references older version of CMake, it's necessary to install newer one | ||
FROM gitpod/workspace-base | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
ARG CONTAINER_USER=gitpod | ||
ARG CONTAINER_GROUP=gitpod | ||
ARG NIGHTLY_VERSION=nightly-2022-03-10 | ||
ARG ESP_IDF_VERSION=v4.4.1 | ||
ARG ESP_BOARD=esp32c3 | ||
RUN sudo install-packages git curl gcc clang ninja-build libudev-dev \ | ||
python3 python3-pip libusb-1.0-0 libssl-dev pkg-config libtinfo5 libpython2.7 | ||
USER ${CONTAINER_USER} | ||
WORKDIR /home/${CONTAINER_USER} | ||
ENV PATH=${PATH}:/home/${CONTAINER_USER}/.cargo/bin | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ | ||
--default-toolchain ${NIGHTLY_VERSION} -y \ | ||
&& $HOME/.cargo/bin/rustup component add rust-src --toolchain ${NIGHTLY_VERSION} \ | ||
&& $HOME/.cargo/bin/rustup target add riscv32imc-unknown-none-elf \ | ||
&& $HOME/.cargo/bin/cargo install cargo-espflash ldproxy | ||
RUN mkdir -p ${HOME}/.espressif/frameworks/ \ | ||
&& git clone --branch ${ESP_IDF_VERSION} -q --depth 1 --shallow-submodules \ | ||
--recursive https://github.com/espressif/esp-idf.git \ | ||
${HOME}/.espressif/frameworks/esp-idf \ | ||
&& python3 ${HOME}/.espressif/frameworks/esp-idf/tools/idf_tools.py install cmake \ | ||
&& ${HOME}/.espressif/frameworks/esp-idf/install.sh ${ESP_BOARD} \ | ||
&& rm -rf .espressif/dist \ | ||
&& rm -rf .espressif/frameworks/esp-idf/docs \ | ||
&& rm -rf .espressif/frameworks/esp-idf/examples \ | ||
&& rm -rf .espressif/frameworks/esp-idf/tools/esp_app_trace \ | ||
&& rm -rf .espressif/frameworks/esp-idf/tools/test_idf_size | ||
ENV IDF_TOOLS_PATH=/home/${CONTAINER_USER}/.espressif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
image: | ||
file: .gitpod.Dockerfile | ||
tasks: | ||
- name: Setup environment variables for ESP-IDF | ||
command: | | ||
source /home/gitpod/.espressif/frameworks/esp-idf-v4.4/export.sh > /dev/null 2>&1 | ||
vscode: | ||
extensions: | ||
- matklad.rust-analyzer | ||
- tamasfe.even-better-toml | ||
- vadimcn.vscode-lldb | ||
- anwar.resourcemonitor | ||
- yzhang.markdown-all-in-one | ||
- serayuzgur.crates | ||
ports: | ||
- port: 9012 | ||
visibility: public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few weeks ago (after this PR was opened) the rust-analyzer project moved into the official Rust GH account. It's now available under the identifier
rust-lang.rust-analyzer
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gitpod uses the Open VSX registry, where rust-analyzer is still under
matklad.rust-analyzer
, I will try to keep an eye on it in case it gets updated!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know.