mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-28 19:45:33 +00:00

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>
20 lines
641 B
Bash
20 lines
641 B
Bash
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#!/bin/bash
|
|
|
|
AoT_Binary_Name=$1
|
|
|
|
# start & run docker image and build wasm
|
|
if test ! -z "$(docker ps -a | grep wasm-toolchain-ctr)"; then
|
|
sudo docker rm wasm-toolchain-ctr
|
|
fi
|
|
|
|
sudo docker run --name=wasm-toolchain-provider-ctr \
|
|
-it -v $(pwd):/mnt \
|
|
wasm-toolchain-provider:1.0 \
|
|
/bin/bash -c "./build_wasm.sh $AoT_Binary_Name"
|
|
|
|
# stop and remove wasm-toolchain-ctr container
|
|
sudo docker stop wasm-toolchain-provider-ctr && sudo docker rm wasm-toolchain-provider-ctr
|