Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/waterlink/docker-activator

Simple development docker image to run through alias in development with full scala, sbt, activator stack
https://github.com/waterlink/docker-activator

Last synced: about 1 month ago
JSON representation

Simple development docker image to run through alias in development with full scala, sbt, activator stack

Awesome Lists containing this project

README

        

# Activator docker image

Full scala, sbt, activator stack tailored to be used as handy development docker image.

## Usage

Add to your `bashrc` or `zshrc`:

```bash
# Tailor `-u $UID:GID` directive if it does not work for you
alias _devdocker="docker run -it --rm -v \$(pwd):\$(pwd) -w \$(pwd) -e HOME=/tmp -u $UID:$GID"

alias activator="_devdocker waterlink/activator activator"
alias activator-ui="rm \?/.activator/*/.{currentpid,lock}; _devdocker -p 8000:8000 waterlink/activator activator ui -Dhttp.address=0.0.0.0"

alias sbt="_devdocker waterlink/activator sbt"
# .. an so on ..
```

And use it like:

```bash
activator-ui # runs activator ui on localhost:8000 (or $(docker-machine ip dev):8000)
activator new # new project
# .. and so on ..
```

## License

MIT