Skip to content

Commit

Permalink
feat: initial version of function runtime (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schuetz <[email protected]>

Signed-off-by: Thomas Schuetz <[email protected]>
  • Loading branch information
thschue authored Sep 20, 2022
1 parent f20fcdb commit c8800ee
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions functions-runtime/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM denoland/deno:1.25.3

COPY entrypoint.sh /entrypoint.sh

USER deno

ENTRYPOINT /entrypoint.sh
14 changes: 14 additions & 0 deletions functions-runtime/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Keptn Lifecycle Controller - Function Runtime

## Build
```
docker build -t keptnsandbox/klc-runtime:${VERSION} .
```

## Usage

### Docker
```
docker run -e SCRIPT=https://deno.land/std/examples/welcome.ts -it keptnsandbox/klc-runtime:${VERSION}
```

5 changes: 5 additions & 0 deletions functions-runtime/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -eu

deno run --allow-net $SCRIPT

0 comments on commit c8800ee

Please sign in to comment.