File tree Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ APP_PATH = /home/gradle/java-sorting-algorithms
Original file line number Diff line number Diff line change
1
+ FROM gradle:4.5.0-jdk8-alpine
2
+
3
+ ENV USER gradle
4
+ ENV APP_PATH /home/gradle/java-sorting-algorithms
5
+
6
+ RUN mkdir $APP_PATH \
7
+ && chown $USER $APP_PATH
Original file line number Diff line number Diff line change
1
+ # README-docker.md
2
+
3
+ ** Pre-requisites:**
4
+ - docker (17.12.0-ce)
5
+ - docker-compose (1.18.0)
6
+
7
+ ## Test
8
+ ``` bash
9
+ docker-compose run gradle gradle clean cobertura check
10
+ ```
11
+
12
+ ## Build
13
+ ``` bash
14
+ docker-compose run gradle gradle clean assemble
15
+ ```
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Import the files [code-style.xml](code-style.xml) and [formatter.xml](formatter.
17
17
18
18
## Test
19
19
``` bash
20
- gradle clean coberturaCheck check
20
+ gradle clean cobertura check
21
21
# Test summary will be located at `build/reports/tests/test/index.html`
22
22
# Coverage report will be located at `build/reports/cobertura/index.html`.
23
23
# Code style issues report will be located at `build/reports/checkstyle/main.html`
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ gradle :
4
+ build : .
5
+ working_dir : $APP_PATH
6
+ volumes :
7
+ - ./config:$APP_PATH/config
8
+ - ./src:$APP_PATH/src
9
+ - ./build.gradle:$APP_PATH/build.gradle
10
+ - ./settings.gradle:$APP_PATH/settings.gradle
11
+ - gradle_cache:/home/gradle/.gradle
12
+ command : gradle --help
13
+ volumes :
14
+ gradle_cache:
You can’t perform that action at this time.
0 commit comments