Docker images for chicken-scheme development
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Kai Klingenberg aa9e33b18c Update to latest chicken version 4 years ago
dockerfiles Update to latest chicken version 4 years ago
.gitignore Initial commit 5 years ago
LICENSE Initial commit 5 years ago
README.md Update to latest chicken version 4 years ago
chicken-assemble.scm Initial commit 5 years ago

README.md

chicken-scheme dockerfiles

Dockerfiles useful for chicken scheme development. An optional custom chicken-assemble script is also provided, used to build projects in an opinionated, structured way.

You may pick a flavour built on top of popular linux distros:

docker pull plotter/chicken-scheme:5.2.0-alpine
docker pull plotter/chicken-scheme:5.2.0-debian
docker pull plotter/chicken-scheme:5.2.0-ubuntu
docker pull plotter/chicken-scheme:5.2.0-centos

How to use these images

Mount your source code directory into a running container to access chicken's REPL and/or compiler:

docker run --rm -it --workdir /src -v $(pwd):/src plotter/chicken-scheme

For truly static builds, prefer the alpine base image and set the proper compiler and linker flags:

FROM plotter/chicken-scheme:5.2.0-alpine
WORKDIR /src
COPY . .
RUN csc ... TODO write proper compilation instruction
ENTRYPOINT ["/src/main"]

You may also choose to build a barebones scratch image containing only the desired binary:

FROM plotter/chicken-scheme:5.2.0-alpine as build
WORKDIR /src
COPY . .
RUN csc ... TODO write proper compilation instruction

FROM scratch
COPY --from=build /src/app /bin/app
ENTRYPOINT ["/bin/app"]

chicken-assemble-based projects

TODO explain chicken-assemble and the enforced project structure