Apache OpenWhisk Runtime Deno supports Apache OpenWhisk functions written in Deno

Clone this repo:

Branches

  1. 1971f38 Bumping to gradle 6 (#15) by Seonghyun Oh · 8 days ago master
  2. 49f1f35 travis2slack integration (#13) by David Grove · 10 months ago
  3. 7d7fa7a fix travis url and update akka version to match core repo (#11) by David Grove · 10 months ago
  4. 258890c require passing travis test to merge PR via asf.yaml (#10) by David Grove · 1 year, 5 months ago
  5. 5ff2702 chore: fix grammar (#9) by John Bampton · 1 year, 5 months ago

Apache OpenWhisk Runtime for Deno

License Build Status

This repository contains sources files needed to build the Deno runtimes for Apache OpenWhisk. The build system will produce a Docker image for each runtime version. These images are used in the platform to execute Deno actions.

Try it out using Docker image:

wsk action create hello main.ts --docker=openwhisk/action-deno-1.3.0

The content of the main.ts is shown below.

export default (args: any) => {
  return {
    message: `Hello, ${args.name || 'World'}!`
  }
}

Development

A Dockerfile for each runtime image is defined in its respective runtime version directory. Modify this file if you need to add extra dependencies to a runtime version.

Build

  • Run the distDocker command to generate local Docker images for the different runtime versions.
./gradlew distDocker

Test

  1. Build the local Docker images for the Deno runtime (see the instructions above).

  2. Install project dependencies from the top-level Apache OpenWhisk project, which ensures correct versions of dependent libraries are available in the Maven cache.

./gradlew install

This command MUST BE run from the directory containing the main Apache OpenWhisk repository, not this repository's directory.

  1. Run the project tests.
./gradlew :tests:test