openfaas-incubator / perl-template Goto Github PK
View Code? Open in Web Editor NEWPerl template for OpenFaaS
License: MIT License
Perl template for OpenFaaS
License: MIT License
Issue:
Handler.pm
may exist elsewhere within one of standard module include paths. This may result in function not working due to different library search order than developer expects.
Proposed solution:
To avoid any confusion, rename Handler.pm
to FaaSHandler.pm
or similar.
Issue:
The empty cpanfile
located in the template is always used during the build, ignoring any other cpanfile
that user may create. This results in container with missing dependencies - not working at all unless there is no dependencies beyond core Perl module set.
Suggested fix/workaround:
Move cpanfile
into function
directory within template, copy directory first and use cpanminus
rather than Carton
to install dependencies from it.
Note:
Switching to cpanminus
should also remove the need to use carton exec
in fprocess
and effectively remove one level of wrapper as library paths are added to main.pl
anyway.
Issue:
perl:<version>-slim
image used here "only contains the minimal packages needed to run perl
", meaning for example lack of TLS support, which is rather important in case of functions.
Proposed Fix:
This can be resolved in one of two ways:
5.28.2-slim
image (112MB)5.28.2
image (891MB)For obvious reasons, first approach is preferred - it will increase the image size but not as much as switching to full version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.