From aa1053c087ada727c79a70946fd3dee46837a62a Mon Sep 17 00:00:00 2001 From: Lorenzo Venerandi Date: Mon, 6 Jan 2025 12:31:10 +0100 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a08cab2..e524913 100644 --- a/README.md +++ b/README.md @@ -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.