Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pjagielski/docker-java-hipster

Hipster Java development environment built with docker
https://github.com/pjagielski/docker-java-hipster

Last synced: 2 days ago
JSON representation

Hipster Java development environment built with docker

Awesome Lists containing this project

README

        

docker-java-hipster
===================

Hipster Java development environment built with [docker](http://docker.io) and powered by [gvm](http://gvmtool.net/).

Featured:
- [gradle](http://www.gradle.org/)
- [spring-boot](http://projects.spring.io/spring-boot/)
- [vert.x](http://vertx.io/)
- [leiningen](http://leiningen.org/)
- [lazybones](https://github.com/pledbrook/lazybones)

Building image
--------------

```bash
docker build -t /hipster-java .
```

Running container
-----------------

```bash
docker run -p 8088:8080 -i -t -v `pwd`/examples:/home/hipster/examples /hipster-java
```

Running example projects
----------------

Just run commands below in a container and then visit [http://localhost:8088](http://localhost:8088) on your host machine for working samples. `examples` dir is hosted from outside the container so restarting container won't erase your changes.

**Spring boot light**

```bash
cd examples/spring-boot-simple && spring run SampleController.java
```

**Spring boot complete**

```bash
cd examples/spring-boot-complete
gradle build
java -jar build/libs/spring-boot-complete.jar
```

**Vert.x**
```bash
cd examples/vertx && vertx run ServerExample.java
```

**Clojure - compojure**
```bash
cd examples/compojure-simple && lein ring server-headless 8080
```