Skip to content

Commit

Permalink
♻️ Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
Shark committed Mar 9, 2022
1 parent 10ef6b8 commit 67ae607
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: docker build
uses: docker/build-push-action@v2
with:
tags: sh4rk/wasm-workflow-executor:${{ steps.tag.outputs.tag }}
tags: sh4rk/wasm-workflows-plugin:${{ steps.tag.outputs.tag }}
outputs: type=docker,dest=/tmp/container-image.tar
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-ferris-says.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push wasm module to ghcr.io
run: wasm-to-oci push wasm-modules/examples/ferris-says/target/wasm32-wasi/release/ferris_says.wasm ghcr.io/shark/wasm-workflow-executor-example-ferris-says:latest
run: wasm-to-oci push wasm-modules/examples/ferris-says/target/wasm32-wasi/release/ferris_says.wasm ghcr.io/shark/wasm-workflows-plugin-example-ferris-says:latest
6 changes: 3 additions & 3 deletions .github/workflows/publish-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: string
env:
REGISTRY: ghcr.io
IMAGE_NAME: shark/wasm-workflow-executor
IMAGE_NAME: shark/wasm-workflows-plugin
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -30,7 +30,7 @@ jobs:

- name: Push Docker image
run: |
docker tag sh4rk/wasm-workflow-executor:${{ inputs.version }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }}
docker tag sh4rk/wasm-workflow-executor:${{ inputs.version }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker tag sh4rk/wasm-workflows-plugin:${{ inputs.version }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }}
docker tag sh4rk/wasm-workflows-plugin:${{ inputs.version }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.version }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "wasm-workflow-executor"
name = "wasm-workflows-plugin"
version = "0.1.0"
edition = "2021"

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ WORKDIR /usr/src
ENV CARGO_HOME=/cache/cargo
COPY . /usr/src/
RUN --mount=type=cache,target=/cache/cargo cargo build --release \
&& strip target/release/wasm-workflow-executor
&& strip target/release/wasm-workflows-plugin
RUN mkdir /wasm-cache

FROM gcr.io/distroless/base-debian11
ENV FS_CACHE_DIR=/wasm-cache
# nonroot user in distroless
USER 65532:65532
COPY --from=build --chown=65532:65532 /wasm-cache /wasm-cache
COPY --from=build /usr/src/target/release/wasm-workflow-executor /wasm-workflow-executor
COPY --from=build /usr/src/target/release/wasm-workflows-plugin /wasm-workflows-plugin
COPY --from=build /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/
ENTRYPOINT ["/wasm-workflow-executor", "--bind", "0.0.0.0"]
ENTRYPOINT ["/wasm-workflows-plugin", "--bind", "0.0.0.0"]
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 wasm-workflow-executor Contributors
Copyright 2022 wasm-workflows-plugin Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

<br />
<div align="center">
<h3 align="center">wasm-workflow-executor</h3>
<h3 align="center">wasm-workflows-plugin</h3>

<p align="center">
An <a href="https://github.com/argoproj/argo-workflows/blob/master/docs/executor_plugins.md">Executor Plugin</a> for <a href="https://argoproj.github.io/argo-workflows/">Argo Workflows</a> that runs WebAssembly modules! 🚀
<br />
<a href="https://github.com/Shark/wasm-workflow-executor/#about-the-project"><strong>Find out why that's awesome »</strong></a>
<a href="https://github.com/Shark/wasm-workflows-plugin/#about-the-project"><strong>Find out why that's awesome »</strong></a>
<!--
<br />
<br />
<a href="https://github.com/Shark/wasm-workflow-executor/doc/demo.md">View Demo</a>
<a href="https://github.com/Shark/wasm-workflows-plugin/doc/demo.md">View Demo</a>
·
<a href="https://github.com/Shark/wasm-workflow-executor/doc/use-cases.md">All Use Cases</a>
<a href="https://github.com/Shark/wasm-workflows-plugin/doc/use-cases.md">All Use Cases</a>
-->
</p>
</div>
Expand Down Expand Up @@ -104,8 +104,8 @@ Open Source software stands on the shoulders of giants. It wouldn't have been po
1. Clone the repository and change to the [`argo-plugin/`](argo-plugin/) directory:

```shell
git clone https://github.com/Shark/wasm-workflow-executor
cd wasm-workflow-executor/argo-plugin
git clone https://github.com/Shark/wasm-workflows-plugin
cd wasm-workflows-plugin/argo-plugin
```

1. Build the plugin ConfigMap:
Expand Down Expand Up @@ -145,7 +145,7 @@ spec:
plugin:
wasm:
module:
oci: ghcr.io/shark/wasm-workflow-executor-example-ferris-says:latest
oci: ghcr.io/shark/wasm-workflows-plugin-example-ferris-says:latest
```
The `wasm` template will produce an output parameter `text` with an awesome message:
Expand Down Expand Up @@ -181,7 +181,7 @@ This repo contains a [ready-to-use template for Rust](wasm-modules/templates/rus

Capabilities expand what modules can do. Without them, modules can take input parameters and artifacts and produce some output.

Some [inspiration for capabilities](https://wasmcloud.dev/reference/host-runtime/capabilities/) can be taken from the wasmCloud project. Currently, this executor does not offer any capabilities, but I want to port some of wasmCloud's capability providers over to enable a wide range of stateful use cases like HTTP/REST, S3 object storage, SQL databases, etc.
Some [inspiration for capabilities](https://wasmcloud.dev/reference/host-runtime/capabilities/) can be taken from the wasmCloud project. Currently, this runtime does not offer any capabilities, but I want to port some of wasmCloud's capability providers over to enable a wide range of stateful use cases like HTTP/REST, S3 object storage, SQL databases, etc.
### :construction: Distributed Mode
Expand Down Expand Up @@ -239,13 +239,13 @@ Distributed under the MIT License. See `LICENSE.txt` for more information.
Felix Seidel – [@sh4rk](https://twitter.com/sh4rk) – felix@seidel.me
Project Link: [https://github.com/Shark/wasm-workflow-executor](https://github.com/Shark/wasm-workflow-executor)
Project Link: [https://github.com/Shark/wasm-workflows-plugin](https://github.com/Shark/wasm-workflows-plugin)
## Acknowledgements
This is a research project as part of my Master Thesis at the [Chair of Prof. Dr. Holger Karl](https://www.hpi.de/karl/people/holger-karl.html) at [Hasso Plattner Institute](https://www.hpi.de), the University of Potsdam (Germany). Thank you for the ongoing support of my thesis!
[issues-shield]: https://img.shields.io/github/issues/Shark/wasm-workflow-executor.svg?style=for-the-badge
[issues-url]: https://github.com/Shark/wasm-workflow-executor/issues
[license-shield]: https://img.shields.io/github/license/Shark/wasm-workflow-executor.svg?style=for-the-badge
[license-url]: https://github.com/Shark/wasm-workflow-executor/blob/main/LICENSE.txt
[issues-shield]: https://img.shields.io/github/issues/Shark/wasm-workflows-plugin.svg?style=for-the-badge
[issues-url]: https://github.com/Shark/wasm-workflows-plugin/issues
[license-shield]: https://img.shields.io/github/license/Shark/wasm-workflows-plugin.svg?style=for-the-badge
[license-url]: https://github.com/Shark/wasm-workflows-plugin/blob/main/LICENSE.txt
4 changes: 2 additions & 2 deletions argo-plugin/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
spec:
sidecar:
container:
image: ghcr.io/shark/wasm-workflow-executor:v0.1.0
name: wasm-workflow-executor
image: ghcr.io/shark/wasm-workflows-plugin:v0.1.0
name: wasm-workflows-plugin
ports:
- containerPort: 3000
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion doc/logging-tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ docker run --name jaeger \
jaegertracing/all-in-one:latest
```

Open [http://localhost:16686](http://localhost:16686) and search for traces by the _service_ `wasm-workflow-executor`.
Open [http://localhost:16686](http://localhost:16686) and search for traces by the _service_ `wasm-workflows-plugin`.
4 changes: 2 additions & 2 deletions src/app/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn setup(debug: bool, enable_telemetry: bool) -> anyhow::Result<()> {
true => filter
.add_directive("tower_http=debug".parse().expect("parse directive"))
.add_directive(
"wasm_workflow_executor=debug"
"wasm_workflows_plugin=debug"
.parse()
.expect("parse directive"),
),
Expand Down Expand Up @@ -46,7 +46,7 @@ fn telemetry() -> anyhow::Result<
>,
> {
let tracer = opentelemetry_jaeger::new_pipeline()
.with_service_name("wasm-workflow-executor")
.with_service_name("wasm-workflows-plugin")
.install_simple()
.map_err(|err| anyhow!(err).context("opentelemetry_jaeger setup failed"))?;

Expand Down
2 changes: 1 addition & 1 deletion wasm-modules/examples/ferris-says/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ spec:
plugin:
wasm:
module:
oci: ghcr.io/shark/wasm-workflow-executor-example-ferris-says:latest
oci: ghcr.io/shark/wasm-workflows-plugin-example-ferris-says:latest

0 comments on commit 67ae607

Please sign in to comment.