devcontainer.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. "BINARYEN_VER": "111",
  13. "EMSDK_VER": "3.0.0",
  14. "LLVM_VER": "15",
  15. "VARIANT": "ubuntu-20.04",
  16. "WASI_SDK_VER": "19",
  17. "WABT_VER": "1.0.31"
  18. }
  19. },
  20. "runArgs": [
  21. "--cap-add=SYS_PTRACE",
  22. "--security-opt",
  23. "seccomp=unconfined"
  24. ],
  25. // Configure tool-specific properties.
  26. "customizations": {
  27. // Configure properties specific to VS Code.
  28. "vscode": {
  29. // Set *default* container specific settings.json values on container create.
  30. "settings": {},
  31. // Add the IDs of extensions you want installed when the container is created.
  32. "extensions": [
  33. "dtsvet.vscode-wasm",
  34. "llvm-vs-code-extensions.vscode-clangd",
  35. "ms-python.python",
  36. "ms-python.vscode-pylance",
  37. "ms-vscode.cmake-tools",
  38. ]
  39. }
  40. },
  41. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  42. // "forwardPorts": [],
  43. // Use 'postCreateCommand' to run commands after the container is created.
  44. "postCreateCommand": "curl https://sh.rustup.rs -sSf | bash -s -- -y",
  45. // Comment out this line to run as root instead.
  46. "remoteUser": "vscode"
  47. }