Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ScalaWilliam/scala-native-sbt-docker


https://github.com/ScalaWilliam/scala-native-sbt-docker

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# scala-native-sbt-docker

Docker image to get quickly started with scala-native & SBT.

This image preloads:
* CLang 3.8
* SBT
* scala-native essential dependencies

And runs Debian.

This image is used for scala-native-libpcap.

## Usage

Assuming your scala-native project is at `/source/project`,

```
$ docker run -v /source/project:/p -it scalawilliam/scala-native-sbt
root@248baf99ddc2:/# cd /p
root@248baf99ddc2:/p# sbt '~run'
```

### Compiling and running separately
```
root@248baf99ddc2:/p# sbt '~nativeLink'
```

And in another terminal:

```
$ docker exec -it 248baf99ddc2 /p/target/scala-2.11/p-out
```