Skip to content

Commit f8ed87f

Browse files
committed
Docker build for checking test failures on Linux
1 parent cfd9979 commit f8ed87f

File tree

3 files changed

+27
-144
lines changed

3 files changed

+27
-144
lines changed

BUILDING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You should have JDK8 and Maven 3.5.0 or above.
77
From the root directory:
88

99
```
10-
mvn install
10+
mvn clean package
1111
```
1212

1313
# Building one module only
@@ -18,8 +18,14 @@ for Maven like so:
1818

1919
```
2020
# example module is 'jooby-hikari' - replace as appropriate
21-
mvn install -pl jooby-hikari -am
21+
mvn package -pl jooby-hikari -am
2222
```
2323

2424
Note: Maven builds the smallest amount on dependent modules necessary before it gets to this one. The resulting
2525
build time is shorter, and less is downloaded from Maven Central to your local cache of jars.
26+
27+
# Docker build
28+
29+
- docker build -t jooby .
30+
- docker run -it --rm jooby /bin/sh
31+
- /build # mvn clean package

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run tests inside docker
2+
3+
# Usage:
4+
# - docker build -t jooby .
5+
# - docker run -it --rm jooby /bin/sh
6+
# - /build # mvn clean package
7+
8+
FROM maven:3.6.0-jdk-8-alpine as maven
9+
10+
WORKDIR /build
11+
COPY pom.xml .
12+
COPY docs/ /build/docs/
13+
COPY etc/ /build/etc/
14+
COPY examples/ /build/examples/
15+
COPY jooby/ /build/jooby/
16+
COPY modules/ /build/modules/
17+
COPY tests/ /build/tests/
18+
19+
RUN mvn clean install -q -DskipTests=true

tests/src/test/java/io/jooby/JoobyRunner.java

Lines changed: 0 additions & 142 deletions
This file was deleted.

0 commit comments

Comments
 (0)