forked from 340Lab/waverless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: NaturalSelect <[email protected]>
- Loading branch information
1 parent
e5fae02
commit e2297f3
Showing
14 changed files
with
2,001 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
ci-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build WasmEdge Image | ||
run: bash docker/WasmEdge/build_image.sh | ||
- name: Install WasmEdge | ||
run: bash ./scripts/install_wasmedge.sh | ||
- name: Install Protobuf | ||
run: bash ./scripts/install_protobuf.sh | ||
- name: Build WasmServerless Image | ||
run: bash docker/WasmServerless/build_image.sh | ||
- name: CI | ||
run: bash docker/ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# FROM busybox:1.36 as builder | ||
# WORKDIR /tmp/build | ||
# COPY . . | ||
# RUN apt-get update && apt-get install -y cmake g++ libprotobuf-dev protobuf-compiler | ||
# RUN cargo build --release | ||
|
||
# FROM python as builder | ||
|
||
# WORKDIR /tmp/build | ||
|
||
FROM ubuntu:18.04 as wasm_serverless | ||
# FROM wasmedge/slim:0.13.3 as wasm_serverless | ||
LABEL maintainers="ActivePeter" | ||
LABEL description="Wasm serverless platform" | ||
|
||
RUN apt-get update && apt-get install -y python3 python3-pip git && mkdir -p /tmp/install | ||
# COPY --from=builder /root/.wasmedge /root/.wasmedge | ||
COPY env_prepare/inner/wasm_edge.py /tmp/install/wasm_edge.py | ||
COPY env_prepare/inner/WasmEdge-0.13.3-manylinux2014_x86_64.tar.gz /tmp/install/WasmEdge-0.13.3-manylinux2014_x86_64.tar.gz | ||
RUN python3 /tmp/install/wasm_edge.py -v 0.13.3 | ||
|
||
# COPY target/release/wasm_serverless /usr/local/bin/wasm_serverless | ||
# COPY node_config.yaml /etc/wasm_serverless/node_config.yaml | ||
# COPY scripts/wasm_serverless_entrypoint.sh /etc/wasm_serverless/ | ||
# RUN chmod +x /etc/wasm_serverless/wasm_serverless_entrypoint.sh | ||
|
||
ENTRYPOINT ["echo","helloworld"] | ||
# ENTRYPOINT ["bash","/etc/wasm_serverless/wasm_serverless_entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker build -t wasm_serverless_env:v1 docker/WasmEdge --no-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Proxy Problem | ||
|
||
export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./WasmEdge-0.13.3-manylinux2014_x86_64.tar.gz |
Binary file added
BIN
+22.4 MB
docker/WasmEdge/env_prepare/inner/WasmEdge-0.13.3-manylinux2014_x86_64.tar.gz
Binary file not shown.
Oops, something went wrong.