A series of personal sbt docker images for Scala. Docker hub link: https://hub.docker.com/r/yangcheng2503/sbt-base
Based on adoptopenjdk images. Support 2 kinds of base OS: Ubuntu and Alpine
Add a new sort of images, which is based on graalvm-ce with Java 11 inside. It's used to build some native images.
Using Label Schema to provide metadata for images.
FYI: Please don't use sbt lower than 1.5.1 anymore! Since bintray has shutdown, previous sbt versions cannot fetch required libraries from bintray.
- latest: the latest sbt (1.5.5), with the latest Openjdk11, based on Ubuntu.
- alpine: the latest sbt, with the latest Openjdk11, base on Alpine.
- graalvm: the latest sbt, with the graalvm-ce 21.1.0, Java 11. Based on Oracle Linux 8.
- 1.5.2-jdk11: sbt version 1.5.2, with the latest Openjdk11, based on Ubuntu.
- 1.5.2-jdk11-alpine: sbt version 1.5.2, with the latest Openjdk11, base on Alpine.
- 1.5.2-graalvm21.1.0: sbt version 1.5.2, with the graalvm-ce 21.1.0, Java 11. Based on Oracle Linux 8.
- 1.5.2-jdk8: sbt version 1.5.2, with the latest Openjdk8, based on Ubuntu.
- 1.5.2-jdk8-alpine: sbt version 1.5.2, with the latest Openjdk8, base on Alpine.
- 1.4.9-jdk11: sbt version 1.4.9, with the latest Openjdk11, based on Ubuntu.
- 1.4.9-jdk11-alpine: sbt version 1.4.9, with the latest Openjdk11, base on Alpine.
- 1.4.9-jdk8: sbt version 1.4.9, with the latest Openjdk8, based on Ubuntu.
- 1.4.9-jdk8-alpine: sbt version 1.4.9, with the latest Openjdk8, base on Alpine.
- 1.3.13-jdk11: sbt version 1.3.13, with the latest Openjdk11, based on Ubuntu.
- 1.3.13-jdk11-alpine: sbt version 1.3.13, with the latest Openjdk11, base on Alpine.
- 1.3.13-jdk8: sbt version 1.3.13, with the latest Openjdk8, based on Ubuntu.
- 1.3.13-jdk8-alpine: sbt version 1.3.13, with the latest Openjdk8, base on Alpine.
- 1.2.8-jdk11: sbt version 1.2.8, with the latest Openjdk11, based on Ubuntu.
- 1.2.8-jdk11-alpine: sbt version 1.2.8, with the latest Openjdk11, base on Alpine.
- 1.2.8-jdk8: sbt version 1.2.8, with the latest Openjdk8, based on Ubuntu.
- 1.2.8-jdk8-alpine: sbt version 1.2.8, with the latest Openjdk8, base on Alpine.
This repo has been linked with Docker Hub, so will be built if any changes commit.
Using hooks to give some dynamic parameters when building. Like org.label-schema.build-date
and org.label-schema.vcs-ref
.
- Docker has been installed.
FYI: You can skip the --build-arg
if you don't care about labels.
For Ubuntu image:
$ docker build --build-arg VCS_REF=<COMMIT_HASH> --build-arg BUILD_DATE=<RFC3339_TIME> ./ubuntu
For Alpine image:
$ docker build --build-arg VCS_REF=<COMMIT_HASH> --build-arg BUILD_DATE=<RFC3339_TIME> ./alpine