Commit 0e7e2d1
Add nodejs-function-invoker buildpack (#47)
This replaces the various Riff-based invoker buildpacks, now that Riff
has been sunset. This buildpack vendors the new Node.js invoker:
https://github.com/forcedotcom/sf-fx-runtime-nodejs
For Riff invoker buildpack prior art, see:
https://github.com/forcedotcom/nodejs-sf-fx-buildpack
https://github.com/projectriff/node-function-buildpack
Takes inspiration from the JVM invoker buildpack:
https://github.com/heroku/buildpacks-jvm/tree/main/buildpacks/jvm-function-invoker
...though has a number of changes since this repo has different
buildpack utility functions (eg for logging, downloads), and uses
shpec rather than Rapier for testing.
This initial version of the buildpack doesn't implement caching, since
whilst the invoker is under active development, the release assets will
be regularly changing, so using unversioned URLs and frequently changing
archive SHA.
This buildpack also currently doesn't pass `$PORT` to the entrypoint,
since the invoker currently doesn't support it (and may read directly
from the env anyway, when there is support for custom ports).
The shellcheck version has been bumped to pick up a fix that reduces the
number of `source=` annotations required to prevent `SC1090` errors.
After this PR is merged and the buildpack published, the meta-buildpack
`nodejs-function` will be updated in another PR, to reference this
buildpack instead of the Riff-based buildpacks.
Closes GUS-W-9115013.
Co-authored-by: Manuel Fuchs <[email protected]>1 parent 46dec4f commit 0e7e2d1
File tree
19 files changed
+357
-5
lines changed- .circleci
- buildpacks/nodejs-function-invoker
- bin
- fixtures
- function-toml
- package-json-only
- project-toml
- lib
- utils
- shpec
19 files changed
+357
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| 110 | + | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments