- 🎁 Exclude certain directories form S2I build tar know to be either unnecessary or error-prone
- 🐛 Error running Node Functions which unnecessarily had node_modules sent to the build daemon
Exclude various files and cache directories from S2I builds. This list may need to be expanded in the future.
Tekton pipeline runs now use the same logic for determining default builder image as a local buildpack build.
In order to implement varying build strategies (s2i vs buildpacks), we were unable to rely on hard-coded builder images. These defaults were moved in-code, with builders defined in func.yaml being an optional manual overrdide. This PR updates the Tekton deployment process to rely on this defaulting logic, rather than require the func.yaml override (which would preclude a Function from being able to be built using other strategies).
* Remove unnecesary files from Quarkus template
The jar will be automatically downloaded first time maven wrapper is used.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Remove unnecesary files from Sprint Boot templates
The jar will be automatically downloaded first time maven wrapper is used.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
All runtimes were actually using paketo builders already, but the
builders were still being explicitly set in manifest.yaml instead of
existing as a default in builder.go like all of the others.
Signed-off-by: Lance Ball <lball@redhat.com>
* Allow empty credentials registry
Useful when using local unsecured registry.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Added tests for empty credentials registries
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* chore(deps): bump faas-js-runtime version
There were a couple of bug fixes in the latest release. This commit
picks those up for functions projects in JavaScript and TypeScript.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: update package-lock.json for node/typescript tmpls
Signed-off-by: Lance Ball <lball@redhat.com>
* fix: update various doc links
There were a few links in the documentation that did not get updated in
the most recent docs restructuring. This addresses those issues that I
could find.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: whitespace
Signed-off-by: Lance Ball <lball@redhat.com>
This commit changes the Python functions to use the open source Paketo
builders. The Paketo builders allow the use of a Procfile to indicate
the desired default start process for the container, so this has been
added to invoke Parliament at startup.
Also, there were no README.md files for Python, so I added them too.
Signed-off-by: Lance Ball <lball@redhat.com>
* Adding timeout and additional logs on e2e http test
* Better revision check on e2e http update test
* ci: Adding workflow to run e2e for all runtimes
* fix: server error 500 for Go cloudevents template
* Refactor: clean Repository and Runtimes structs
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Refactor: rename struct member
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Refactor: use fs.WalkDir to copy from FS
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Refactor: rename and added doc comment
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Refactor: clean up templates
Make `fn.Template` interface not struct.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Clean up: mask manifest.yaml from template FS
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Refactor: receiver is not pointer
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Refactor: use const instead of string literal
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: TemplatesPath defaulting at correct place
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: mask manifest.yaml in template code
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: remove unnecessary else
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: put docstring on interface
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: test calls better API
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: check return value
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Use the latest Knative release in the hack/allocate.sh script.
In addition, there is a small change to how the munged yaml files
are piped through `yq`, adding a final pass through `yq` itself
essentially sanitizing the data.
Signed-off-by: Lance Ball <lball@redhat.com>
* chore: add version.txt to .gitattributes for style
The Knative style check uses linguist to determine if a given file is a
generated file. If so, it excludes that file from the check. This change
should prevent Knative's style check from complaining about no newline on
version.txt
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: also add zz_filessytem_generated.go
Signed-off-by: Lance Ball <lball@redhat.com>
* docs: restructure & add a language pack "contract"
The docs/guides/langugage-packs.md document does a good job of describing
what's required of a language pack in terms of directory structure and the
options for the `manifest.yaml` file. But it does a pretty crappy job of
describing the whole thing in context. I've tried to do that here.
Also some fixes to links and reorganization of the docs to make things a
little easier to find.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: inline language pack referenc into contract
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: minor wording tweak
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: whitespace
Signed-off-by: Lance Ball <lball@redhat.com>