Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eed3si9n/docker-sbt

Docker image for sbt
https://github.com/eed3si9n/docker-sbt

Last synced: 15 days ago
JSON representation

Docker image for sbt

Awesome Lists containing this project

README

        

sbt Docker image
================

This is for running sbt in Docker.

### base Docker image

- [adoptopenjdk/openjdk8](https://hub.docker.com/r/adoptopenjdk/openjdk8)
- [adoptopenjdk/openjdk11](https://hub.docker.com/r/adoptopenjdk/openjdk11)

I am using the alpine variants of the AdoptOpenJDK OpenJDK images.

## usage

For AdoptOpenJDK JDK 8

```
docker pull eed3si9n/sbt
docker run -it --mount src="$(pwd)",target=/opt/workspace,type=bind eed3si9n/sbt:jdk8-alpine
```

To use `/bin/bash` as the entry point (for `console` task etc):

```
docker run --entrypoint "/bin/bash" -it --mount src="$(pwd)",target=/opt/workspace,type=bind eed3si9n/sbt:jdk8-alpine
```

For AdoptOpenJDK JDK 11

```
docker pull eed3si9n/sbt:jdk11-alpine
docker run -it --mount src="$(pwd)",target=/opt/workspace,type=bind eed3si9n/sbt:jdk11-alpine
```