devcontainer.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.245.2/containers/cpp
  5. {
  6. "name": "WAMR-Dev",
  7. "build": {
  8. "dockerfile": "Dockerfile",
  9. // Update 'VARIANT' to pick an Debian / Ubuntu OS version: debian-12, debian-11, debian-10, debian-9, ubuntu-21.04, ubuntu-20.04, ubuntu-18.04
  10. // Use Debian 12, Debian 11, Debian 9, Ubuntu 18.04 or Ubuntu 21.04 on local arm64/Apple Silicon
  11. "args": {
  12. "BINARYEN_VER": "114",
  13. "BAZELISK_VER": "1.17.0",
  14. "CMAKE_VER": "3.27.0",
  15. "EMSDK_VER": "3.1.43",
  16. "GH_CLI_VER": "2.32.0",
  17. "LLVM_VER": "16",
  18. "VARIANT": "debian-12",
  19. "WASI_SDK_VER": "20",
  20. "WABT_VER": "1.0.33"
  21. }
  22. },
  23. "runArgs": [
  24. "--cap-add=SYS_PTRACE",
  25. "--security-opt",
  26. "seccomp=unconfined"
  27. ],
  28. // Configure tool-specific properties.
  29. "customizations": {
  30. // Configure properties specific to VS Code.
  31. "vscode": {
  32. // Set *default* container specific settings.json values on container create.
  33. "settings": {},
  34. // Add the IDs of extensions you want installed when the container is created.
  35. "extensions": [
  36. "dtsvet.vscode-wasm",
  37. "llvm-vs-code-extensions.vscode-clangd",
  38. "ms-python.python",
  39. "ms-python.vscode-pylance",
  40. "ms-vscode.cmake-tools"
  41. ]
  42. }
  43. },
  44. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  45. // "forwardPorts": [],
  46. // Use 'postCreateCommand' to run commands after the container is created.
  47. "postCreateCommand": "curl https://sh.rustup.rs -sSf | bash -s -- -y",
  48. // Comment out this line to run as root instead.
  49. "remoteUser": "vscode"
  50. }