devcontainer.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
  4. // https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/cpp
  5. {
  6. "name": "WAMR-Dev",
  7. "build": {
  8. "dockerfile": "Dockerfile",
  9. // Update 'VARIANT' to pick an Debian / Ubuntu OS version: debian-11, debian-10, debian-9, ubuntu-21.04, ubuntu-20.04, ubuntu-18.04
  10. // Use Debian 11, Debian 9, Ubuntu 18.04 or Ubuntu 21.04 on local arm64/Apple Silicon
  11. "args": {
  12. "VARIANT": "ubuntu-20.04"
  13. }
  14. },
  15. "runArgs": [
  16. "--cap-add=SYS_PTRACE",
  17. "--security-opt",
  18. "seccomp=unconfined"
  19. ],
  20. // Configure tool-specific properties.
  21. "customizations": {
  22. // Configure properties specific to VS Code.
  23. "vscode": {
  24. // Set *default* container specific settings.json values on container create.
  25. "settings": {},
  26. // Add the IDs of extensions you want installed when the container is created.
  27. "extensions": [
  28. "dtsvet.vscode-wasm",
  29. "esbenp.prettier-vscode",
  30. "ms-python.python",
  31. "ms-python.vscode-pylance",
  32. "ms-vscode.cmake-tools",
  33. "ms-vscode.cpptools",
  34. "twxs.cmake"
  35. ]
  36. }
  37. },
  38. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  39. // "forwardPorts": [],
  40. // Use 'postCreateCommand' to run commands after the container is created.
  41. "postCreateCommand": "curl https://sh.rustup.rs -sSf | bash -s -- -y",
  42. // Comment out this line to run as root instead.
  43. "remoteUser": "vscode"
  44. }