Docker image for Scala + SBT + Git
100K+
Scala, sbt and git container.
Useful for building in environments like CircleCI v2.
docker pull codestar/circleci-scala-sbt-git
Alternatively, you can build an image from Dockerfile:
docker build -t circleci-scala-sbt-git github.com/codestar/circleci-scala-sbt-git
Or with specific versions:
docker build \
-t circleci-scala-sbt-git \
--build-arg SCALA_VERSION=2.12.3 \
--build-arg SBT_VERSION=0.13.15 \
github.com/code-star/circleci-scala-sbt-git
docker run -it --rm spikerlabs/scala-sbt /bin/bash
version: 2
jobs:
build:
working_directory: ~/my-project
docker:
- image: codestar/circleci-scala-sbt-git:scala-2.12.2-sbt-0.13.15
steps:
- checkout
- restore_cache:
keys:
- my-project-{{ checksum "project/build.sbt" }}-{{ checksum "build.sbt" }}
- my-project
- run:
# TODO: For some reason circleci gets stuck in the shell if we don't add exit to sbt
command:
sbt compile test:compile exit
- save_cache:
key: my-project-{{ checksum "project/build.sbt" }}-{{ checksum "build.sbt" }}
paths:
- target/resolution-cache
- target/streams
- project/target/resolution-cache
- project/target/streams
- ~/.sbt
- ~/.iv2/cache
- ~/.m2
- save_cache:
# Changing this to a different key is the only way to remove old dependencies from the cache and/or generate a more up-to-date cache
key: my-project
paths:
- ~/.sbt
- ~/.iv2/cache
- ~/.m2
- run:
command:
sbt test exit
- store_test_results:
path: target/test-reports
Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.
This code is open source software licensed under the Apache 2.0 License.
This fork is based on spikerlabs/scala-sbt and hseeberger/scala-sbt.
Content type
Image
Digest
Size
223.5 MB
Last updated
over 7 years ago
docker pull codestar/circleci-scala-sbt-git:scala-2.13.0-M5-sbt-1.2.8