|
All checks were successful
/ build_alpine (11-jdk) (push) Successful in 3m0s
/ build_alpine (17-jdk) (push) Successful in 2m41s
/ build_alpine (21-jdk) (push) Successful in 2m55s
/ trivy (bookworm, 17-jdk) (push) Successful in 3m10s
/ trivy (bookworm-slim, 17-jdk) (push) Successful in 3m11s
/ build_debian (bookworm, 17-jdk) (push) Successful in 3m37s
/ build_debian (bookworm-slim, 17-jdk) (push) Successful in 3m55s
/ trivy (21-jdk) (push) Successful in 3m34s
/ build_dind (11-jdk) (push) Successful in 17s
/ build_dind (17-jdk) (push) Successful in 16s
/ trivy (11-jdk) (push) Successful in 3m6s
/ trivy (17-jdk) (push) Successful in 3m8s
/ build_dind (21-jdk) (push) Successful in 16s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .dockerignore | ||
| Dockerfile.alpine | ||
| Dockerfile.debian | ||
| Dockerfile.dind | ||
| README.md | ||
SBT Docker
Build images for SBT, the Scala build tool. These can be used for building SBT projects in CI/Actions workflows. There are standard variants for Alpine and Debian, and a variant based on the Docker CLI image; this is particularly useful if you're testing with libraries such as Testcontainers or building Docker images with SBT.
Images
This image will create images based on the current stable version of SBT (as of this writing, 1.10.11). The following image variants exist:
- Alpine OpenJDK 11
- Alpine OpenJDK 17
- Alpine OpenJDK 21
- Docker CLI (Alpine) OpenJDK 11
- Docker CLI (Alpine) OpenJDK 17
- Docker CLI (Alpine) OpenJDK 21
- Debian Bookworm JDK 17
- Debian Bookworm (Slim) JDK 17
These images are built automatically when changes are made. There is currently no latest tag, this will be determined at a later date.
Pulling
Pull the tag for the image you want to use:
docker pull forge.cptlobster.dev/cptlobster/sbt:alpine-21-jdk-1.10.11
Running
For an interactive SBT shell:
docker run -it -v ./:/tmp/sbt \
forge.cptlobster.dev/cptlobster/sbt:alpine-21-jdk-1.10.11
To run a specific SBT command (i.e. to compile):
docker run -it -v ./:/tmp/sbt \
forge.cptlobster.dev/cptlobster/sbt:alpine-21-jdk-1.10.11 \
compile
Security
Images are scanned for vulnerabilities using Trivy. Vulnerability reports are available in Actions under the trivy job.