ccfontes / faas-idris2 Goto Github PK
View Code? Open in Web Editor NEWAn OpenFaaS template for writing Functions in Idris 2.
License: MIT License
An OpenFaaS template for writing Functions in Idris 2.
License: MIT License
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.
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
https://stackoverflow.com/questions/43654656/dockerfile-if-else-condition-with-external-arguments
From the link above see this answer:
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
Support more Idris 2 code generators. For starters:
Codegen: https://github.com/mmhelloworld/idris-jvm
Pack support pending issue: github.com/stefan-hoeck/idris2-pack#146
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.