Coder Social home page Coder Social logo

faas-idris2's Introduction

Passionate about

Babashka Clojure ClojureScript Reagent GitHub OpenFaaS AsciiDoc Docker

Stats

Public contribution stats
GitHub Streak
Profile Details

Repos Per Language Most Commit Language

trophy

faas-idris2's People

Contributors

ccfontes avatar

Stargazers

 avatar  avatar

Watchers

 avatar

faas-idris2's Issues

COPY racket dist from docker img is insufficient

Error: huh, erased from the terminal buffer, but it was spurious as such: build/exec/index not found.

Offending code:

FROM racket/racket:8.8 AS racket

FROM idris2-chez AS idris2-racket
ONBUILD COPY --from=racket /usr/bin/raco /usr/bin/raco
ONBUILD COPY --from=racket /usr/bin/racket /usr/bin/racket
ONBUILD COPY --from=racket /usr/share/racket /usr/share/racket
ONBUILD COPY --from=racket /usr/lib/racket /usr/lib/racket

What works:

FROM racket/racket:8.8 AS racket

FROM idris2-chez AS idris2-racket
ONBUILD RUN apt-get update && apt-get install --yes racket

Now we know this will get us into trouble in prod right? So, let's try to find out what's missing.

User to pass codegen only in one place

Problem: For now, the user needs to configure codegen both in stack.yml and pack.toml.

Solution: Hack an idris2-pack fork to allow passing --cg <codegen> to build command

Run Function as non-root user

Error when runnng as non-root user:

Function invoke time error:
   mkdir: cannot create directory '/home/app/.pack/.tmp0': Permission denied
   /home/app/.pack/bin/idris2: 7: [: missing ]
 FIXME: fix errors above for this user:

Dockerfile related code:

 RUN groupadd app && useradd -g app app
 USER app:app

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.