wasm-micro-runtime/test-tools/wamr-ide/WASM-Toolchain-Provider/Docker/README.md
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

72 lines
1.3 KiB
Markdown

# 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
```shell
chmod +x resource/*
./build_docker_image.sh
```
- Windows
```shell
./build_docker_image.bat
```
# Run Docker Container
- Linux
```shell
./run_container.sh
```
- Windows
```shell
./run_container.bat
```