Shirakumo / radiance

A Common Lisp web application environment
https://shirakumo.github.io/radiance/
zlib License
311 stars 19 forks source link

Radiance doesn't qualify for the TFB #37

Closed GertThiel closed 5 years ago

GertThiel commented 5 years ago

I invested a whole night to get Radiance running in Docker in a manner the TFB requires: The final container must answer requests almost immediately.

My multi stage build runs both the radiance-bootstrap.lisp and start.lisp in the build step container/image and copies all files into the final "production" container/image.

But still, after all the effort, start.lisp just reinstalls postmodern at every start.

I'm exhausted.

Can't you just support building standalone apps?

PS: Automating radiance-bootstrap.lisp and start.lisp is extremely fragile.

hjudt commented 5 years ago

Check container-lisp/s2i-lisp. It compiles everything and my radiance container starts up within 2 seconds.

GertThiel commented 5 years ago

Thanks, @hjudt.

Do you have a Dockerfile using that tool for a Radiance app by chance?

hjudt commented 5 years ago

You don't need a docker file, just the s2i tool. This produces a docker image. You might need a dockerfile if you have to install additional dependencies (e.g. c libraries). It's rather easy, just follow the instructions. For an example, look at this: https://github.com/hjudt/sample-lisp-app It might not be completely up-to-date but you can use it as a starting point - note the .s2i subdir. If you have any questions, please use the issues on the s2i-lisp project page on github, not here.

GertThiel commented 5 years ago

I have tried for three days to get Radiance TFB-compliant.

My patience is exhausted.

Please don't get that wrong. Radiance is fine and to start into a REPL is a nice thing in real life. But TFB is a benchmark, that antonym of reality.