Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit e6159cc

Browse files
committed
Added multiple wasm tools #3476
1 parent ad5584a commit e6159cc

File tree

11 files changed

+224
-0
lines changed

11 files changed

+224
-0
lines changed

renovate.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4832,6 +4832,17 @@
48324832
"depNameTemplate": "ckotzbauer/vulnerability-operator",
48334833
"datasourceTemplate": "github-releases"
48344834
},
4835+
{
4836+
"fileMatch": [
4837+
"^tools/wagi/manifest.yaml$"
4838+
],
4839+
"matchStrings": [
4840+
"version: \"?(?<currentValue>.*?)\"?\\n"
4841+
],
4842+
"depNameTemplate": "deislabs/wagi",
4843+
"datasourceTemplate": "github-releases",
4844+
"extractVersionTemplate": "^v(?<version>.+?)$"
4845+
},
48354846
{
48364847
"fileMatch": [
48374848
"^tools/wait-for/manifest.yaml$"
@@ -4854,6 +4865,49 @@
48544865
"datasourceTemplate": "github-releases",
48554866
"extractVersionTemplate": "^v(?<version>.+?)$"
48564867
},
4868+
{
4869+
"fileMatch": [
4870+
"^tools/wasmedge/manifest.yaml$"
4871+
],
4872+
"matchStrings": [
4873+
"version: \"?(?<currentValue>.*?)\"?\\n"
4874+
],
4875+
"depNameTemplate": "WasmEdge/WasmEdge",
4876+
"datasourceTemplate": "github-releases"
4877+
},
4878+
{
4879+
"fileMatch": [
4880+
"^tools/wasmer/manifest.yaml$"
4881+
],
4882+
"matchStrings": [
4883+
"version: \"?(?<currentValue>.*?)\"?\\n"
4884+
],
4885+
"depNameTemplate": "wasmerio/wasmer",
4886+
"datasourceTemplate": "github-releases",
4887+
"extractVersionTemplate": "^v(?<version>.+?)$"
4888+
},
4889+
{
4890+
"fileMatch": [
4891+
"^tools/wasmi/manifest.yaml$"
4892+
],
4893+
"matchStrings": [
4894+
"version: \"?(?<currentValue>.*?)\"?\\n"
4895+
],
4896+
"depNameTemplate": "paritytech/wasmi",
4897+
"datasourceTemplate": "github-releases",
4898+
"extractVersionTemplate": "^v(?<version>.+?)$"
4899+
},
4900+
{
4901+
"fileMatch": [
4902+
"^tools/wasmtime/manifest.yaml$"
4903+
],
4904+
"matchStrings": [
4905+
"version: \"?(?<currentValue>.*?)\"?\\n"
4906+
],
4907+
"depNameTemplate": "bytecodealliance/wasmtime",
4908+
"datasourceTemplate": "github-releases",
4909+
"extractVersionTemplate": "^v(?<version>.+?)$"
4910+
},
48574911
{
48584912
"fileMatch": [
48594913
"^tools/watchexec/manifest.yaml$"

tools/wagi/Dockerfile.template

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
curl --silent --location --fail "https://github.com/deislabs/wagi/releases/download/v${version}/wagi-v${version}-linux-${alt_arch}.tar.gz" \
10+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
11+
wagi
12+
EOF
13+
14+
# completion
15+
#RUN <<EOF
16+
#"${prefix}${target}/bin/foo" completion bash >"${prefix}${target}/share/bash-completion/completions/foo"
17+
#"${prefix}${target}/bin/foo" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/foo.fish"
18+
#"${prefix}${target}/bin/foo" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_foo"
19+
#EOF

tools/wagi/manifest.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: wagi
2+
version: "0.8.1"
3+
check: ""
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
#Requires:
8+
#- libssl.so.1.1
9+
#- libcrypto.so.1.1
10+
tags:
11+
- category/development
12+
- lang/rust
13+
- type/cli
14+
- webassembly
15+
- wasm
16+
homepage: https://github.com/deislabs/wagi
17+
description: Write HTTP handlers in WebAssembly with a minimal amount of work
18+
renovate:
19+
datasource: github-releases
20+
package: deislabs/wagi
21+
extractVersion: ^v(?<version>.+?)$

tools/wasmedge/Dockerfile.template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
curl --silent --location --fail "https://github.com/WasmEdge/WasmEdge/releases/download/${version}/WasmEdge-${version}-manylinux2014_${arch}.tar.xz" \
10+
| tar --extract --xz --directory="${prefix}${target}" --strip-components=1 --no-same-owner
11+
EOF

tools/wasmedge/manifest.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: wasmedge
2+
version: "0.11.2"
3+
check: ${binary} --version | cut -d' ' -f3
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/development
9+
- lang/c
10+
- type/cli
11+
- webassembly
12+
- wasm
13+
homepage: https://github.com/WasmEdge/WasmEdge
14+
description: Lightweight, high-performance, and extensible WebAssembly runtime
15+
renovate:
16+
datasource: github-releases
17+
package: WasmEdge/WasmEdge

tools/wasmer/Dockerfile.template

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
curl --silent --location --fail "https://github.com/wasmerio/wasmer/releases/download/v${version}/wasmer-linux-${alt_arch}.tar.gz" \
10+
| tar --extract --gzip --directory="${prefix}${target}" --no-same-owner \
11+
bin
12+
EOF

tools/wasmer/manifest.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: wasmer
2+
version: "3.1.1"
3+
check: ${binary} --version | cut -d' ' -f2
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/development
9+
- lang/rust
10+
- type/cli
11+
- webassembly
12+
- wasm
13+
homepage: https://github.com/wasmerio/wasmer
14+
description: Leading WebAssembly Runtime supporting WASI and Emscripten
15+
renovate:
16+
datasource: github-releases
17+
package: wasmerio/wasmer
18+
extractVersion: ^v(?<version>.+?)$

tools/wasmi/Dockerfile.template

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/rust:${ref} AS rust
6+
7+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
8+
COPY --from=rust / /
9+
ARG DEBIAN_FRONTEND=noninteractive
10+
RUN <<EOF
11+
apt-get update
12+
apt-get -y install --no-install-recommends \
13+
build-essential
14+
EOF
15+
WORKDIR /tmp/github.com/paritytech/wasmi
16+
ARG name
17+
ARG version
18+
SHELL [ "/bin/bash", "--login", "-ec" ]
19+
RUN <<EOF
20+
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/paritytech/wasmi .
21+
export RUSTFLAGS='-C target-feature=+crt-static'
22+
cargo build --release --target "${arch}-unknown-linux-gnu"
23+
cp "target/${arch}-unknown-linux-gnu/release/wasmi_cli" "${prefix}${target}/bin/"
24+
EOF

tools/wasmi/manifest.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: wasmi
2+
version: "0.27.0"
3+
check: ${binary} --version | cut -d' ' -f2
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/development
9+
- lang/rust
10+
- type/cli
11+
- webassembly
12+
- wasm
13+
homepage: https://github.com/paritytech/wasmi
14+
description: WebAssembly (Wasm) interpreter
15+
renovate:
16+
datasource: github-releases
17+
package: paritytech/wasmi
18+
extractVersion: ^v(?<version>.+?)$

tools/wasmtime/Dockerfile.template

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
curl --silent --location --fail "https://github.com/bytecodealliance/wasmtime/releases/download/v${version}/wasmtime-v${version}-${arch}-linux.tar.xz" \
10+
| tar --extract --xz --directory="${prefix}${target}/bin/" --strip-components=1 --no-same-owner \
11+
"wasmtime-v${version}-${arch}-linux/wasmtime"
12+
EOF

0 commit comments

Comments
 (0)