Update README.md

This commit is contained in:
Lorenzo Venerandi 2025-01-06 12:31:10 +01:00
parent a81063b8e1
commit aa1053c087

View File

@ -20,6 +20,24 @@ wash build
wash push gitea.rebus.ninja/lore/go-nats-client:1.x.x build/go_nats_client_s.wasm
```
## Build and push to the registry using the dockerfile
### Build the cointainer
```bash
docker build -t wash-image-build .
```
### Build the component and push to the registry
First setup your credentials
```bash
export REG_USER=user && export REG_PASS=pass
```
Build and push
```bash
docker run --rm -e REGISTRY=gitea.rebus.ninja/lore/wasm-nats-stream-client:1.0.x -e WASH_REG_USER=$REG_USER -e WASH_REG_PASSWORD=$REG_PASS -v "$(pwd):/app" wash-image-build
```
## Running with wasmtime
You must have wasmtime 25.0.0 for this to work. Make sure to follow the build step above first.