Giter Site home page Giter Site logo

perl-template's People

Contributors

alexellis avatar zeerorg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zeerorg

perl-template's Issues

Rename Handler.pm to avoid possible naming conflicts

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.

cpanfile ignored during build process

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.

Lack of TLS support

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:

  1. Add required Debian modules to the Dockerfile and keep using 5.28.2-slim image (112MB)
  2. Switch to full image 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.