-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from senseshift/develop
Release 0.7.0-rc.1
- Loading branch information
Showing
168 changed files
with
9,805 additions
and
5,893 deletions.
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
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,52 @@ | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu | ||
|
||
ARG CLANG_VERSION=16 | ||
|
||
RUN apt-get update \ | ||
&& apt-get -qqy install \ | ||
lsb-release \ | ||
wget \ | ||
software-properties-common \ | ||
gnupg \ | ||
bc \ | ||
sudo \ | ||
build-essential \ | ||
ca-certificates \ | ||
clang \ | ||
curl \ | ||
gcc \ | ||
git \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-venv \ | ||
python3-distutils \ | ||
python3-setuptools \ | ||
libpython2.7-dev \ | ||
srecord \ | ||
udev \ | ||
xz-utils \ | ||
&& wget --quiet https://apt.llvm.org/llvm.sh \ | ||
&& chmod +x llvm.sh \ | ||
&& ./llvm.sh $CLANG_VERSION && rm -rf llvm.sh \ | ||
&& apt-get --no-install-recommends -y install clang-format-$CLANG_VERSION clang-tidy-$CLANG_VERSION \ | ||
&& ln -s /usr/bin/clang-format-$CLANG_VERSION /usr/bin/clang-format \ | ||
&& ln -s /usr/bin/clang-tidy-$CLANG_VERSION /usr/bin/clang-tidy \ | ||
&& ln -s /usr/bin/python3 /usr/bin/python \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -fLo /etc/udev/rules.d/99-platformio-udev.rules --create-dirs https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | ||
|
||
USER $USERNAME | ||
|
||
# RUN wget https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -O get-platformio.py \ | ||
# && python3 get-platformio.py \ | ||
# && rm -rf get-platformio.py | ||
|
||
RUN python -m pip install --upgrade pip \ | ||
&& pip install --upgrade platformio | ||
|
||
RUN sudo wget -O /usr/local/bin/wokwi-cli https://github.com/wokwi/wokwi-cli/releases/latest/download/wokwi-cli-linuxstatic-x64 \ | ||
&& sudo chmod +x /usr/local/bin/wokwi-cli |
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,60 @@ | ||
{ | ||
// "name": "SenseShift", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"runArgs": [ | ||
"--privileged" | ||
], | ||
"forwardPorts": [ | ||
8008 | ||
], | ||
"mounts": [ | ||
"source=/dev/,target=/dev/,type=bind,consistency=consistent" | ||
], | ||
"updateContentCommand": { | ||
"submodule": "git submodule update --init --recursive", | ||
"pio": "pio pkg install" | ||
}, | ||
"postAttachCommand": [ | ||
"sudo", | ||
"service", | ||
"udev", | ||
"restart" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"platformio-ide.useBuiltinPIOCore": false, | ||
"platformio-ide.useBuiltinPython": false, | ||
"platformio-ide.disablePIOHomeStartup": true, | ||
"platformio-ide.pioHomeServerHttpPort": 8008, | ||
"platformio-ide.autoOpenPlatformIOIniFile": false, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.DS_Store": true | ||
}, | ||
"files.associations": { | ||
"**/.vscode/*.json": "jsonc" | ||
}, | ||
"C_Cpp.clang_format_path": "clang-format" | ||
}, | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"redhat.vscode-yaml", | ||
"platformio.platformio-ide", | ||
"Wokwi.wokwi-vscode", | ||
"xaver.clang-format", | ||
"editorconfig.editorconfig", | ||
"GitHub.copilot", | ||
"GitHub.copilot-labs", | ||
"GitHub.copilot-chat", | ||
"wakatime.vscode-wakatime" | ||
] | ||
} | ||
} | ||
} |
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
Oops, something went wrong.