-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Magnus de Pourbaix
committed
Feb 23, 2016
1 parent
7af74dd
commit 2a5d7e0
Showing
5 changed files
with
62 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# News Server microservice in Groovy | ||
This module demonstrates creating a simple microservice in Vert.x, using Groovy, which sends regular messages on the | ||
Vert.x event bus. | ||
|
||
## Build Instructions | ||
|
||
* `mvn clean package` | ||
* `mvn docker:build` | ||
* If you need to push your Docker image, use `mvn docker:push`. | ||
|
||
## Run Instructions | ||
|
||
* `db-service-java` needs to be running. | ||
* `mvn docker:start` to boot up a Docker container and `mvn docker:stop` to tear it down. | ||
|
||
### Using Dockerfile | ||
The [Dockerfile](/Dockerfile) in the module mirrors Docker settings in `pom.xml` to illustrate different usage scenarios. | ||
|
||
* `docker run -t -i vertxdemo/news-server-groovy:1.0-SNAPSHOT` | ||
|
||
### Using IntelliJ | ||
|
||
* Simply create a `Run 'xxx'` in IntelliJ | ||
|
||
### Using java -jar | ||
|
||
* `java -jar target/news-server-groovy-1.0-SNAPSHOT-fat.jar -cp target/classes -ha` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# News Server microservice in Ruby | ||
|
||
This module demonstrates creating a simple microservice in Vert.x, using Ruby, which sends regular messages on the | ||
Vert.x event bus. | ||
|
||
## Build Instructions | ||
|
||
* `mvn clean package` | ||
* `mvn docker:build` | ||
* If you need to push your Docker image, use `mvn docker:push`. | ||
|
||
## Run Instructions | ||
|
||
* `mvn docker:start` to boot up a Docker container and `mvn docker:stop` to tear it down. | ||
|
||
### Using Dockerfile | ||
The [Dockerfile](/Dockerfile) in the module mirrors Docker settings in `pom.xml` to illustrate different usage scenarios. | ||
|
||
* `docker run -t -i vertxdemo/news-server-rb:1.0-SNAPSHOT` | ||
|
||
### Using IntelliJ | ||
|
||
* Running Ruby verticles in Intellij requires installation and setup in project of JRuby | ||
* Run Ruby verticles in IntelliJ by creating a Run task: | ||
- Run -> Edit Configurations... | ||
- Add a new Application configuration | ||
- Main Class: `io.vertx.core.Launcher` | ||
- Program arguments: `run ./news-server-rb/src/main/rb/app/news_server.rb -ha` | ||
|
||
### Using java -jar | ||
|
||
* `java -jar target/news-server-rb-1.0-SNAPSHOT-fat.jar -cp target/classes -ha` |