Publish the docker image with tar/zip files (#1808)

And fix issue found in fast jit call indirect.
This commit is contained in:
Wenyong Huang
2022-12-14 09:42:03 +08:00
committed by GitHub
parent ca0b5cf816
commit 97d2b5a060
4 changed files with 93 additions and 42 deletions

View File

@ -37,23 +37,35 @@ under `resource/debug/bin`.
- Ubuntu Bionic 18.04(LTS)
```
#### 3. Pull docker images from the registry(recommended) or build docker images on the host
#### 3. Load docker images from the release tar file or build docker images on the host
##### 3.1 Pull docker images from registry
##### 3.1 Load docker images from the release tar file
From now on, for each release, we have the same version tagged docker image pushed to GitHub package.
From now on, for each release, we have the same version tagged docker image saved as a tar file, which you can find and download in the release.
You could simply pull a certain version of docker images using the following commands:
You could download the tar archive files for docker images from the release, and then load them using the following commands:
```sh
# pull and retag wasm-toolchain
docker pull ghcr.io/bytecodealliance/wasm-toolchain:{version number}
docker tag ghcr.io/bytecodealliance/wasm-toolchain:{version number} wasm-toolchain:{version number}
docker rmi ghcr.io/bytecodealliance/wasm-toolchain:{version number}
# pull and retag wasm-debug-server
docker pull ghcr.io/bytecodealliance/wasm-debug-server:{version number}
docker tag ghcr.io/bytecodealliance/wasm-debug-server:{version number} wasm-debug-server:{version number}
docker rmi ghcr.io/bytecodealliance/wasm-debug-server:{version number}
# download the zip or tar.gz from release depending on your platform
# decompress and get the tar file
# on Linux/MacOS, you could use tar
tar xf wasm-toolchain-{version number}.tar.gz
tar xf wasm-debug-server-{version number}.tar.gz
# or you could use unzip
unzip wasm-toolchain-{version number}.zip
unzip wasm-debug-server-{version number}.zip
# load wasm-toolchain
docker load --input wasm-toolchain.tar
# load wasm-debug-server
docker load --input wasm-debug-server.tar
# on Windows, you could use any unzip software you like
# then loading docker images using powershell or git bash
# load wasm-toolchain
docker load --input ./wasm-toolchain.tar
# load wasm-debug-server
docker load --input ./wasm-debug-server.tar
```
##### 3.2 Build docker images on host