diff --git a/.devcontainer/build.sh b/.devcontainer/build.sh new file mode 100755 index 00000000000000..761d911ef4467e --- /dev/null +++ b/.devcontainer/build.sh @@ -0,0 +1,85 @@ +#!/bin/bash + +# +# Copyright (c) 2023 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +HERE="$(dirname "$0")" +CHIP_ROOT="$(realpath "$HERE"/..)" +BUILD_VERSION="latest" +IMAGE_TAG="matter-dev-environment:local" +USER_UID=$UID + +function show_usage() { + cat < Preferences > Settings > Remote. - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" + "customizations": { + "vscode": { + // Add the IDs of extensions you want installed when the container is created in the array below. + "extensions": [ + "mcu-debug.debug-tracker-vscode", + "aaron-bond.better-comments", + "augustocdias.tasks-shell-input", + "christian-kohler.path-intellisense", + "eamodio.gitlens", + "editorconfig.editorconfig", + "esbenp.prettier-vscode", + "foxundermoon.shell-format", + "github.vscode-pull-request-github", + "maelvalais.autoconf", + "marus25.cortex-debug", + "ms-azuretools.vscode-docker", + "ms-vscode.cpptools", + "msedge-dev.gnls", + "redhat.vscode-yaml", + "vadimcn.vscode-lldb", + "xaver.clang-format", + "yuichinukiyama.vscode-preview-server", + "yzhang.markdown-all-in-one" + ], + "settings": { + "terminal.integrated.defaultProfile.linux": "bash", + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/bin/bash", + "args": ["-l"] + } + } + } + } }, "remoteEnv": { "GIT_PS1_SHOWDIRTYSTATE": "1",