-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve plugin loading, and include sample plugin with docker contain…
…er (#39) * Allow passing in plugins path * Update dockerfile to include the example plugin * Load all plugins available in plugins directory
- Loading branch information
1 parent
004d9ab
commit 7cb4604
Showing
4 changed files
with
85 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# build hmruntime binary | ||
FROM golang:alpine as runtime-builder | ||
WORKDIR /src | ||
COPY hmruntime/ ./ | ||
RUN go build . | ||
|
||
# build example plugin | ||
FROM node:20-alpine as plugin-builder | ||
WORKDIR /src | ||
COPY plugins/as/ ./ | ||
WORKDIR /src/hmplugin1 | ||
RUN npm install | ||
RUN npm run build:release | ||
|
||
# build runtime image | ||
FROM ubuntu:20.04 | ||
LABEL maintainer="Hypermode <hello@hypermode.com>" | ||
COPY --from=runtime-builder /src/hmruntime /usr/bin/hmruntime | ||
COPY --from=plugin-builder /src/hmplugin1/build/release.wasm /plugins/hmplugin1.wasm | ||
|
||
ENTRYPOINT ["hmruntime", "--plugins=/plugins"] |
This file was deleted.
Oops, something went wrong.
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