wasm-micro-runtime/test-tools/wamr-ide/WASM-Toolchain-Provider/Docker
Wenyong Huang d925369a1f
Implement WAMR-IDE with vscode extension (#943)
Implement WAMR-IDE with vscode extension to enable developing
WebAssembly applications with coding, building, running and
debugging support. Support both Linux and Windows, and only
support putting all the tools in a docker image, e.g. wasi-sdk, wamrc,
iwasm and so on.

Co-authored-by: Wang Ning <justdoitwn@163.com>
2022-01-25 10:10:12 +08:00
..
resource Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
.dockerignore Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
build_docker_image.bat Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
build_docker_image.sh Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
Dockerfile Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
README.md Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
run_container.bat Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00
run_container.sh Implement WAMR-IDE with vscode extension (#943) 2022-01-25 10:10:12 +08:00

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