-
Notifications
You must be signed in to change notification settings - Fork 90
Feature/devcontainer #59
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9298cd2
Add devcontainer
SergioGasquez b018963
Use rev option to set fixed commit hash
1aaf27a
Allow no-auth wifi networks
SergioGasquez 218df42
Remove unnecesary env variables
SergioGasquez 5eef60e
Reformat container layers
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 hidden or 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,30 @@ | ||
| FROM debian:bullseye | ||
| ENV DEBIAN_FRONTEND=noninteractive | ||
| ENV LC_ALL=C.UTF-8 | ||
| ENV LANG=C.UTF-8 | ||
| ARG CONTAINER_USER=esp | ||
| ARG CONTAINER_GROUP=esp | ||
| ARG NIGHTLY_VERSION=nightly-2022-03-10 | ||
| RUN apt-get update \ | ||
| && apt-get install -y vim nano git curl gcc ninja-build cmake libudev-dev \ | ||
| python3 python3-pip libusb-1.0-0 libssl-dev pkg-config libtinfo5 clang \ | ||
| && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts | ||
| RUN adduser --disabled-password --gecos "" ${CONTAINER_USER} | ||
| USER ${CONTAINER_USER} | ||
| WORKDIR /home/${CONTAINER_USER} | ||
| ENV PATH=${PATH}:$HOME/.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 riscv32i-unknown-none-elf \ | ||
| && $HOME/.cargo/bin/cargo install cargo-generate cargo-espflash espmonitor bindgen ldproxy | ||
| ENV ESP_BOARD=esp32c3 | ||
| ENV ESP_IDF_VERSION=release/v4.4 | ||
| RUN mkdir -p .espressif/frameworks/ \ | ||
| && git clone --branch ${ESP_IDF_VERSION} -q --depth 1 --shallow-submodules \ | ||
| --recursive https://github.com/espressif/esp-idf.git \ | ||
| .espressif/frameworks/esp-idf-v4.4 \ | ||
| && .espressif/frameworks/esp-idf-v4.4/install.sh ${ESP_BOARD} \ | ||
| && rm -rf .espressif/dist \ | ||
| && rm -rf .espressif/frameworks/esp-idf-v4.4/docs | ||
| CMD "/bin/bash" | ||
This file contains hidden or 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,34 @@ | ||
| { | ||
| "name": "espressif-training", | ||
| "build": { | ||
| "dockerfile": "Dockerfile", | ||
| "args": { | ||
| "NIGHTLY_VERSION": "nightly-2022-03-10", | ||
| "CONTAINER_USER": "esp" | ||
| } | ||
| }, | ||
| "settings": { | ||
| "editor.formatOnPaste": true, | ||
| "editor.formatOnSave": true, | ||
| "editor.formatOnSaveMode": "modifications", | ||
| "editor.formatOnType": true, | ||
| "lldb.executable": "/usr/bin/lldb", | ||
| "files.watcherExclude": { | ||
| "**/target/**": true | ||
| }, | ||
| "rust-analyzer.checkOnSave.command": "clippy", | ||
| "[rust]": { | ||
| "editor.defaultFormatter": "matklad.rust-analyzer" | ||
| }, | ||
| }, | ||
| "extensions": [ | ||
| "matklad.rust-analyzer", | ||
| "tamasfe.even-better-toml", | ||
| "vadimcn.vscode-lldb", | ||
| "serayuzgur.crates", | ||
| "mutantdino.resourcemonitor", | ||
| "yzhang.markdown-all-in-one", | ||
| ], | ||
| "workspaceMount": "source=${localWorkspaceFolder},target=/home/esp/workspace,type=bind,consistency=cached", | ||
| "workspaceFolder": "/home/esp/workspace/" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.