- Common Lisp 98.8%
- Dockerfile 1.2%
About Radiance-Bootstrap
This is a system that offers a single file to bootstrap Radiance deployed installations from. Using ASDF the system can be concatenated down to a single file that can be loaded in. The file will then handle the installation and configuration of a basic setup.
Using It
Download the file and load it in.
curl -L https://shirakumo.org/projects/radiance-bootstrap/raw/branch/master/bin/radiance-bootstrap.lisp | sbcl
It'll ask you some questions about the installation interactively. That's it.
Compiling the Bootstrapper
If you want to generate the full bootstrap file yourself, you can do so like this:
(asdf:operate 'asdf:build-op :radiance-bootstrap)
Migrating from Radiance 1.0 to 2.0
In Radiance 2.0 the way environment directories are handled has changed, which breaks the previous bootstrapper's start script. In order to migrate, you should be able to just replace the start.lisp file with the current one from this repository.
Using Docker/OCI
If you want to create a Docker/OCI image of your setup or a deployment of an application you're working on, you can use the ''codeberg.org/shirakumo/radiance-bootstrap''(link https://codeberg.org/shirakumo/-/packages/container/radiance-bootstrap) image. It ships a completed non-interactive bootstrap. You can then configure it like this:
docker run -it codeberg.org/shirakumo/radiance-bootstrap configure
After configuration, just starting the container will cause it to launch Radiance.
If you want to provide your own module as a standalone docker image, you can compose it like this:
FROMcodeberg.org/shirakumo/radiance-bootstrapCOPY . /radiance/modules/my-moduleCOPY docker.conf.lisp /radiance/config/default/radiance-core/radiance-core.conf.lispRUN sbcl --script /radiance/start.lisp start -qEXPOSE80VOLUME ["/radiance/data/", "/radiance/config/", "/radiance/override/"]ENTRYPOINT /radiance/start.lispThis copies your current sources over as my-module, a specific default config for the core to select the preferred interfaces, and then runs start with the quit flag to start it up and immediately shut it down. This will compile and cache everything needed.