clfoundation/sbcl

By clfoundation

Updated 4 months ago

Steel Bank Common Lisp

Image
6

100K+

clfoundation/sbcl repository overview

Supported Tags

Simple Tags

  • 0a984a8 0a984a8-alpine3.12 0a984a8-alpine3.13 0a984a8-buster 0a984a8-slim 0a984a8-slim-buster 0a984a8-slim-stretch 0a984a8-stretch
  • 0c88426 0c88426-alpine3.11 0c88426-alpine3.12 0c88426-buster 0c88426-slim 0c88426-slim-buster 0c88426-slim-stretch 0c88426-stretch
  • 1b07958 1b07958-alpine3.11 1b07958-alpine3.12 1b07958-buster 1b07958-slim 1b07958-slim-buster 1b07958-slim-stretch 1b07958-stretch 1bf54b8 1bf54b8-alpine3.12 1bf54b8-alpine3.13 1bf54b8-buster 1bf54b8-slim 1bf54b8-slim-buster 1bf54b8-slim-stretch 1bf54b8-stretch
  • 2.0.10 2.0.10-alpine3.11 2.0.10-alpine3.12 2.0.10-buster 2.0.10-slim 2.0.10-slim-buster 2.0.10-windowsservercore 2.0.10-windowsservercore-1809 2.0.10-windowsservercore-ltsc2016
  • 2.0.11 2.0.11-alpine3.11 2.0.11-alpine3.12 2.0.11-buster 2.0.11-slim 2.0.11-slim-buster 2.0.11-slim-stretch 2.0.11-stretch 2.0.11-windowsservercore 2.0.11-windowsservercore-1809 2.0.11-windowsservercore-ltsc2016
  • 2.1.0 2.1.0-alpine3.11 2.1.0-alpine3.12 2.1.0-alpine3.13 2.1.0-buster 2.1.0-slim 2.1.0-slim-buster 2.1.0-slim-stretch 2.1.0-stretch 2.1.0-windowsservercore 2.1.0-windowsservercore-1809 2.1.0-windowsservercore-ltsc2016
  • 2.1.1 2.1.1-alpine3.12 2.1.1-alpine3.13 2.1.1-buster 2.1.1-slim 2.1.1-slim-buster 2.1.1-slim-stretch 2.1.1-stretch 2.1.1-windowsservercore 2.1.1-windowsservercore-1809 2.1.1-windowsservercore-ltsc2016
  • 2.1.2 2.1.2-alpine3.12 2.1.2-alpine3.13 2.1.2-buster 2.1.2-slim 2.1.2-slim-buster 2.1.2-slim-stretch 2.1.2-stretch 2.1.2-windowsservercore 2.1.2-windowsservercore-1809 2.1.2-windowsservercore-ltsc2016
  • 2.1.3 2.1.3-alpine3.12 2.1.3-alpine3.13 2.1.3-buster 2.1.3-slim 2.1.3-slim-buster 2.1.3-slim-stretch 2.1.3-stretch 2.1.3-windowsservercore 2.1.3-windowsservercore-1809 2.1.3-windowsservercore-ltsc2016
  • 2.1.4 2.1.4-alpine3.12 2.1.4-alpine3.13 2.1.4-buster 2.1.4-slim 2.1.4-slim-buster 2.1.4-slim-stretch 2.1.4-stretch 2.1.4-windowsservercore 2.1.4-windowsservercore-1809 2.1.4-windowsservercore-ltsc2016
  • 2.1.5 2.1.5-alpine3.12 2.1.5-alpine3.13 2.1.5-buster 2.1.5-slim 2.1.5-slim-buster 2.1.5-slim-stretch 2.1.5-stretch 2.1.5-windowsservercore 2.1.5-windowsservercore-1809 2.1.5-windowsservercore-ltsc2016 2.1.5rc 2.1.5rc-alpine3.12 2.1.5rc-alpine3.13 2.1.5rc-buster 2.1.5rc-stretch
  • 2.1.5-rc 2.1.5-rc-alpine3.12 2.1.5-rc-alpine3.13 2.1.5-rc-buster 2.1.5-rc-stretch
  • 2.1.6 2.1.6-alpine3.13 2.1.6-alpine3.14 2.1.6-buster 2.1.6-slim 2.1.6-slim-buster 2.1.6-slim-stretch 2.1.6-stretch 2.1.6-windowsservercore 2.1.6-windowsservercore-1809 2.1.6-windowsservercore-ltsc2016
  • 2.1.6-rc 2.1.6-rc-alpine3.13 2.1.6-rc-alpine3.14 2.1.6-rc-buster 2.1.6-rc-stretch
  • 2.1.7 2.1.7-alpine3.13 2.1.7-alpine3.14 2.1.7-buster 2.1.7-slim 2.1.7-slim-buster 2.1.7-slim-stretch 2.1.7-stretch 2.1.7-windowsservercore 2.1.7-windowsservercore-1809 2.1.7-windowsservercore-ltsc2016
  • 2.1.7-rc 2.1.7-rc-alpine3.13 2.1.7-rc-alpine3.14 2.1.7-rc-buster 2.1.7-rc-stretch
  • 2.1.8 2.1.8-alpine3.13 2.1.8-alpine3.14 2.1.8-bullseye 2.1.8-buster 2.1.8-slim 2.1.8-slim-bullseye 2.1.8-slim-buster 2.1.8-windowsservercore 2.1.8-windowsservercore-1809 2.1.8-windowsservercore-ltsc2016
  • 2.1.9 2.1.9-alpine3.13 2.1.9-alpine3.14 2.1.9-bullseye 2.1.9-buster 2.1.9-slim 2.1.9-slim-bullseye 2.1.9-slim-buster 2.1.9-windowsservercore 2.1.9-windowsservercore-1809 2.1.9-windowsservercore-ltsc2016 2.1.9-windowsservercore-ltsc2019
  • 2.1.10 2.1.10-alpine3.13 2.1.10-alpine3.14 2.1.10-bullseye 2.1.10-buster 2.1.10-slim 2.1.10-slim-bullseye 2.1.10-slim-buster 2.1.10-windowsservercore 2.1.10-windowsservercore-1809 2.1.10-windowsservercore-ltsc2019
  • 2.1.11 2.1.11-alpine3.14 2.1.11-alpine3.15 2.1.11-bullseye 2.1.11-buster 2.1.11-slim 2.1.11-slim-bullseye 2.1.11-slim-buster 2.1.11-windowsservercore 2.1.11-windowsservercore-1809 2.1.11-windowsservercore-ltsc2019
  • 2.2.0 2.2.0-alpine3.14 2.2.0-alpine3.15 2.2.0-bullseye 2.2.0-buster 2.2.0-slim 2.2.0-slim-bullseye 2.2.0-slim-buster 2.2.0-windowsservercore 2.2.0-windowsservercore-1809 2.2.0-windowsservercore-ltsc2019
  • 2.2.1 2.2.1-alpine3.14 2.2.1-alpine3.15 2.2.1-bullseye 2.2.1-buster 2.2.1-slim 2.2.1-slim-bullseye 2.2.1-slim-buster 2.2.1-windowsservercore 2.2.1-windowsservercore-1809 2.2.1-windowsservercore-ltsc2019
  • 2.2.2 2.2.2-alpine3.14 2.2.2-alpine3.15 2.2.2-bullseye 2.2.2-buster 2.2.2-slim 2.2.2-slim-bullseye 2.2.2-slim-buster 2.2.2-windowsservercore 2.2.2-windowsservercore-1809 2.2.2-windowsservercore-ltsc2019
  • 2.2.4 2.2.4-alpine3.14 2.2.4-alpine3.15 2.2.4-bullseye 2.2.4-buster 2.2.4-slim 2.2.4-slim-bullseye 2.2.4-slim-buster 2.2.4-windowsservercore 2.2.4-windowsservercore-1809 2.2.4-windowsservercore-ltsc2019
  • 2.5.10 2.5.10-alpine3.21 2.5.10-alpine3.22 2.5.10-bookworm 2.5.10-bookworm-slim 2.5.10-trixie 2.5.10-trixie-slim
  • 2.5.11-rc-alpine3.21 2.5.11-rc-alpine3.22 2.5.11-rc-bookworm 2.5.11-rc-trixie
  • 2.6.1 2.6.1-alpine3.21 2.6.1-alpine3.22 2.6.1-bookworm 2.6.1-bookworm-slim 2.6.1-trixie 2.6.1-trixie-slim
  • 2.6.2-rc-alpine3.21 2.6.2-rc-alpine3.22 2.6.2-rc-bookworm 2.6.2-rc-trixie
  • 3b96fc1 3b96fc1-alpine3.11 3b96fc1-alpine3.12 3b96fc1-buster 3b96fc1-slim 3b96fc1-slim-buster 3b96fc1-slim-stretch 3b96fc1-stretch
  • 4b5e0c0 4b5e0c0-alpine3.11 4b5e0c0-alpine3.12 4b5e0c0-buster 4b5e0c0-slim 4b5e0c0-slim-buster 4b5e0c0-slim-stretch 4b5e0c0-stretch
  • 5cb8034 5cb8034-alpine3.12 5cb8034-alpine3.13 5cb8034-buster 5cb8034-slim 5cb8034-slim-buster 5cb8034-slim-stretch 5cb8034-stretch
  • 5e7c329 5e7c329-alpine3.12 5e7c329-alpine3.13 5e7c329-buster 5e7c329-slim 5e7c329-slim-buster 5e7c329-slim-stretch 5e7c329-stretch
  • 7af0779 7af0779-alpine3.11 7af0779-alpine3.12 7af0779-buster 7af0779-slim 7af0779-slim-buster 7af0779-slim-stretch 7af0779-stretch
  • 7d73d06 7d73d06-alpine3.11 7d73d06-alpine3.12 7d73d06-buster 7d73d06-slim 7d73d06-slim-buster 7d73d06-slim-stretch 7d73d06-stretch
  • 7f88161 7f88161-alpine3.11 7f88161-alpine3.12 7f88161-buster 7f88161-slim 7f88161-slim-buster 7f88161-slim-stretch 7f88161-stretch
  • 8b5f058 8b5f058-alpine3.11 8b5f058-alpine3.12 8b5f058-buster 8b5f058-slim 8b5f058-slim-buster 8b5f058-slim-stretch 8b5f058-stretch 8b9b0df 8b9b0df-alpine3.11 8b9b0df-alpine3.12 8b9b0df-buster 8b9b0df-slim 8b9b0df-slim-buster 8b9b0df-slim-stretch 8b9b0df-stretch
  • 8d9fcee 8d9fcee-alpine3.12 8d9fcee-alpine3.13 8d9fcee-buster 8d9fcee-slim 8d9fcee-slim-buster 8d9fcee-slim-stretch 8d9fcee-stretch
  • 8efa331 8efa331-alpine3.11 8efa331-alpine3.12 8efa331-buster 8efa331-slim 8efa331-slim-buster 8efa331-slim-stretch 8efa331-stretch
  • 24e22fa 24e22fa-alpine3.12 24e22fa-alpine3.13 24e22fa-buster 24e22fa-slim 24e22fa-slim-buster 24e22fa-slim-stretch 24e22fa-stretch
  • 61c0a2b 61c0a2b-alpine3.11 61c0a2b-alpine3.12 61c0a2b-buster 61c0a2b-slim 61c0a2b-slim-buster 61c0a2b-slim-stretch 61c0a2b-stretch
  • 75fe9b8 75fe9b8-alpine3.11 75fe9b8-alpine3.12 75fe9b8-buster 75fe9b8-slim 75fe9b8-slim-buster 75fe9b8-slim-stretch 75fe9b8-stretch
  • 77ed643 77ed643-alpine3.11 77ed643-alpine3.12 77ed643-buster 77ed643-slim 77ed643-slim-buster 77ed643-slim-stretch 77ed643-stretch
  • 88e734e 88e734e-alpine3.12 88e734e-alpine3.13 88e734e-buster 88e734e-slim 88e734e-slim-buster 88e734e-slim-stretch 88e734e-stretch
  • 114d1d5 114d1d5-alpine3.12 114d1d5-alpine3.13 114d1d5-buster 114d1d5-slim 114d1d5-slim-buster 114d1d5-slim-stretch 114d1d5-stretch
  • 242e5f2 242e5f2-alpine3.12 242e5f2-alpine3.13 242e5f2-buster 242e5f2-slim 242e5f2-slim-buster 242e5f2-slim-stretch 242e5f2-stretch
  • 294d150 294d150-alpine3.11 294d150-alpine3.12 294d150-buster 294d150-slim 294d150-slim-buster 294d150-slim-stretch 294d150-stretch
  • 316e956 316e956-alpine3.12 316e956-alpine3.13 316e956-buster 316e956-slim 316e956-slim-buster 316e956-slim-stretch 316e956-stretch
  • 420ca21 420ca21-alpine3.12 420ca21-alpine3.13 420ca21-buster 420ca21-slim 420ca21-slim-buster 420ca21-slim-stretch 420ca21-stretch
  • 848cfd0 848cfd0-alpine3.12 848cfd0-alpine3.13 848cfd0-buster 848cfd0-slim 848cfd0-slim-buster 848cfd0-slim-stretch 848cfd0-stretch
  • 4359df3 4359df3-alpine3.11 4359df3-alpine3.12 4359df3-buster 4359df3-slim 4359df3-slim-buster 4359df3-slim-stretch 4359df3-stretch
  • 5491c03 5491c03-alpine3.11 5491c03-alpine3.12 5491c03-buster 5491c03-slim 5491c03-slim-buster 5491c03-slim-stretch 5491c03-stretch
  • 7765c4e 7765c4e-alpine3.12 7765c4e-alpine3.13 7765c4e-buster 7765c4e-slim 7765c4e-slim-buster 7765c4e-slim-stretch 7765c4e-stretch
  • 7991d1d 7991d1d-alpine3.11 7991d1d-alpine3.12 7991d1d-buster 7991d1d-slim 7991d1d-slim-buster 7991d1d-slim-stretch 7991d1d-stretch
  • 9928c16 9928c16-alpine3.11 9928c16-alpine3.12 9928c16-buster 9928c16-slim 9928c16-slim-buster 9928c16-slim-stretch 9928c16-stretch
  • 22142cb 22142cb-alpine3.12 22142cb-alpine3.13 22142cb-buster 22142cb-slim 22142cb-slim-buster 22142cb-slim-stretch 22142cb-stretch
  • 86208cc 86208cc-alpine3.11 86208cc-alpine3.12 86208cc-buster 86208cc-slim 86208cc-slim-buster 86208cc-slim-stretch 86208cc-stretch
  • 202436e 202436e-alpine3.11 202436e-alpine3.12 202436e-buster 202436e-slim 202436e-slim-buster 202436e-slim-stretch 202436e-stretch
  • 252811a 252811a-alpine3.12 252811a-alpine3.13 252811a-buster 252811a-slim 252811a-slim-buster 252811a-slim-stretch 252811a-stretch
  • 338114f 338114f-alpine3.12 338114f-alpine3.13 338114f-buster 338114f-slim 338114f-slim-buster 338114f-slim-stretch 338114f-stretch
  • 617158a 617158a-alpine3.11 617158a-alpine3.12 617158a-buster 617158a-slim 617158a-slim-buster 617158a-slim-stretch 617158a-stretch

Shared Tags

  • latest
    • 617158a

Quick Reference

SBCL Home Page
http://sbcl.org

Where to file Docker image related issues
https://gitlab.common-lisp.net/cl-docker-images/sbcl

Where to file issues for SBCL itself
https://bugs.launchpad.net/sbcl

Maintained by
CL Docker Images Project

Supported platforms
linux/amd64

What is SBCL?

From SBCL's Home Page:

Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler. It is open source / free software, with a permissive license. In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions.

How to use this image

Create a Dockerfile in your SBCL project

FROM clfoundation/sbcl:latest
COPY . /usr/src/app
WORKDIR /usr/src/app
CMD [ "sbcl", "--load", "./your-daemon-or-script.lisp" ]

You can then build and run the Docker image:

$ docker build -t my-sbcl-app
$ docker run -it --rm --name my-running-app my-sbcl-app

Run a single Common Lisp script

For many simple, single file projects, you may find it inconvenient to write a complete `Dockerfile`. In such cases, you can run a Lisp script by using the SBCL Docker image directly:

$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/app -w /usr/src/app clfoundation/sbcl:latest sbcl --load ./your-daemon-or-script.lisp

Developing using SLIME

SLIME provides a convenient and fun environment for hacking on Common Lisp. To develop using SLIME, first start the Swank server in a container:

$ docker run -it --rm --name sbcl-slime -p 127.0.0.1:4005:4005 -v /path/to/slime:/usr/src/slime -v "$PWD":/usr/src/app -w /usr/src/app clfoundation/sbcl:latest sbcl --load /usr/src/slime/swank-loader.lisp --eval '(swank-loader:init)' --eval '(swank:create-server :dont-close t :interface "0.0.0.0")'

Then, in an Emacs instance with slime loaded, type:

M-x slime-connect RET RET RET

What's in the image?

This image contains SBCL binaries built from the latest source code released by the SBCL devs for a variety of OSes and architectures.

Currently, the only modification made to the SBCL source code when building is to remove -march=armv5 from the CFLAGS on 32-bit ARM targets. This is done because recent gcc versions (like the ones in Alpine 3.11 and 3.12) no longer support this target and it can create suboptimal binaries for armv7 (which is the explicit target of these Docker images). This issue has been reported upstream.

Image variants

This image comes in several variants, each designed for a specific use case.

clfoundation/sbcl:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of. The included SBCL binary was built with the --fancy flag. Additionally, these images contain the SBCL source code (at /usr/local/src/sbcl) to help facilitate interactive development and exploration (a hallmark of Common Lisp!).

Some of these tags may have names like trixie or bookworm in them. These are the suite code names for releases of Debian and indicate which release the image is based on. If your image needs to install any additional packages beyond what comes with the image, you'll likely want to specify one of these explicitly to minimize breakage when there are new releases of Debian.

These images are built off the buildpack-deps image. It, by design, has a large number of extremely common Debian packages.

These images contain the Quicklisp installer, located at /usr/local/share/common-lisp/source/quicklisp/quicklisp.lisp. Additionally, there is a script at /usr/local/bin/install-quicklisp that will use the bundled installer to install Quicklisp. You can configure the Quicklisp install with the following environment variables:

QUICKLISP_DIST_VERSION
The dist version to use. Of the form yyyy-mm-dd. latest means to install the latest version (the default).

QUICKLISP_CLIENT_VERSION
The client version to use. Of the form yyyy-mm-dd. latest means to install the latest version (the default).

QUICKLISP_ADD_TO_INIT_FILE
If set to true, (ql:add-to-init-file) is used to add code to the implementation's user init file to load Quicklisp on startup. Not set by default.

Additionally, these images contain cl-launch to provide a uniform interface to running a Lisp implementation without caring exactly which implementation is being used (for instance to have uniform CI scripts).

clfoundation/sbcl:<version>-slim

This image does not contain the common packages contained in the default tag and only contains the minimal packages needed to run SBCL. Unless you are working in an environment where only this image will be deployed and you have space constraints, we highly recommend using the default image of this repository.

clfoundation/sbcl:<version>-alpine

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use musl libc instead of glibc and friends, so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).

License

SBCL is licensed using a mix of BSD-style and public domain licenses. See SBCL's COPYING file for more info.

The Dockerfiles used to build the images are licensed under BSD-2-Clause.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

sha256:8da38f714

Size

348 MB

Last updated

4 months ago

docker pull clfoundation/sbcl:2.6.1-bookworm