Wenyong Huang d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
..
resource d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
.dockerignore d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
Dockerfile d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
README.md d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
build_docker_image.bat d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
build_docker_image.sh d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
run_container.bat d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây
run_container.sh d925369a1f Implement WAMR-IDE with vscode extension (#943) 4 năm trước cách đây

README.md

WASM Toolchain Provider Introduction

Files on HOST

Dockerfile

  • ubuntu : 20.04
  • set up the necessary toolchains
    • WASI-SDK (version: 12.0)
    • WAMR-SDK
      • repo: bytecode-alliance/wasm-micro-runtime
      • branch: main
    • LLVM (latest repo build)
    • CMake (version: 3.21.1)

build_docker_image.sh

  • the script to build docker image for Linux platform
  • tag: 1.0

build_docker_image.bat

  • the script to build docker image for windows platform
  • tag: 1.0

run_container.sh

  • the script to start and run the docker container for Linux platform
  • mount host directory and container directory
    • temporally using $(pwd)/host_mnt_test in host and /mnt in container
  • set docker container name with --name
    • temporally set to wasm-toolchain-ctr

run_container.bat

  • the script to start and run the docker container for windows platform

Files inside docker

wamrc

wasi-sdk

Build Docker Image

  • Linux

    chmod +x resource/*
    ./build_docker_image.sh
    
  • Windows

    ./build_docker_image.bat
    

Run Docker Container

  • Linux

    ./run_container.sh
    
  • Windows

    ./run_container.bat