-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
2 changed files
with
16 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# Java | ||
Build jars (fat and thin jar): `mvn -DskipTests=true clean dependency:copy-dependencies package` | ||
|
||
## Thin jar, no Manifest | ||
`java -classpath "target/server-1.0-SNAPSHOT.jar:target/dependency/*" ch.ibw.appl.todo.server.Main --test=true` | ||
|
||
## Fat jar, with Manifest | ||
This does not work with hsqldb in memory database. Hence, you require a running mysql/mariadb database. | ||
|
||
`java -jar target/server-1.0-SNAPSHOT-jar-with-dependencies.jar` | ||
|
||
# Docker | ||
|
||
Build image with `docker build --tag todomvc-java-server .` | ||
Build image `docker build --tag todomvc-java-server .` | ||
|
||
Run built image with `docker run --rm -p 4567:4567 todomvc-java-server` | ||
Run built image `docker run --rm -p 4567:4567 todomvc-java-server` |
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