File tree 5 files changed +49
-11
lines changed
5 files changed +49
-11
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ A collection of docker-compose files for local development compatible with the W
4
4
5
5
## List of Images
6
6
7
- | Image | Port | Username | Password |
8
- | ----------------- | ----- | -------- | -------- |
9
- | CockpitCMS | 7320 | - | - |
10
- | MariaDB 10.1 | 3306 | devel | devel |
11
- | MariaDB (Latest) | 3306 | devel | devel |
12
- | MongoDB (Latest) | 27017 | root | root |
13
- | MySQL 5.7 | 3306 | devel | devel |
14
- | MySQL (Latest) | 3306 | devel | devel |
15
- | Postgres (Latest) | 5432 | postgres | root |
16
- | RabbitMQ (Latest) | 15672 | devel | devel |
17
- | Traccar 4.10 | 8082 | - | - |
7
+ | Image | Port | Username | Password |
8
+ | ----------------------- | ----- | -------- | -------- |
9
+ | CockpitCMS | 7320 | - | - |
10
+ | MariaDB 10.1 | 3306 | devel | devel |
11
+ | MariaDB (Latest) | 3306 | devel | devel |
12
+ | MongoDB (Latest) | 27017 | root | root |
13
+ | MySQL 5.7 | 3306 | devel | devel |
14
+ | MySQL (Latest) | 3306 | devel | devel |
15
+ | Postgres (Latest) | 5432 | postgres | root |
16
+ | RabbitMQ (Latest) | 15672 | devel | devel |
17
+ | SonarScanner 4.4.0.2170 | - | - | - |
18
+ | Traccar 4.10 | 8082 | - | - |
Original file line number Diff line number Diff line change
1
+ COMPOSE_PROJECT_NAME = sonar-scanner
2
+ COMPOSE_IGNORE_ORPHANS = true
Original file line number Diff line number Diff line change
1
+
2
+ FROM alpine:3.12.0
3
+
4
+ ARG SONAR_SCANNER_CLI_VERSION="4.4.0.2170"
5
+
6
+ # Prepare workspace
7
+ RUN apk add --no-cache curl grep sed unzip bash openjdk8
8
+ WORKDIR /src
9
+ COPY . .
10
+
11
+ # Install the sonar scanner cli
12
+ # Based off https://github.com/newtmitch/docker-sonar-scanner/blob/master/Dockerfile.sonarscanner-3.2.0-alpine
13
+ WORKDIR /tmp
14
+ RUN curl --insecure -o ./sonarscanner.zip -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_CLI_VERSION}-linux.zip
15
+ RUN unzip ./sonarscanner.zip
16
+ RUN rm ./sonarscanner.zip
17
+ RUN mv ./sonar-scanner-${SONAR_SCANNER_CLI_VERSION}-linux /usr/lib/sonar-scanner
18
+ RUN ln -s /usr/lib/sonar-scanner/bin/sonar-scanner /usr/local/bin/sonar-scanner
19
+ ENV SONAR_RUNNER_HOME=/usr/lib/sonar-scanner
20
+ RUN sed -i 's/use_embedded_jre=true/use_embedded_jre=false/g' /usr/lib/sonar-scanner/bin/sonar-scanner
21
+
22
+ WORKDIR /src
23
+
24
+ ENTRYPOINT ["sonar-scanner" ]
Original file line number Diff line number Diff line change
1
+ SONAR_SCANNER_CLI_VERSION = " 4.4.0.2170"
Original file line number Diff line number Diff line change
1
+ version : " 3.7"
2
+
3
+ services :
4
+ sonar-scanner-4.4.0.2170 :
5
+ container_name : sonar-scanner-4.4.0.2170
6
+ build :
7
+ context : ./
8
+ dockerfile : ./Dockerfile
9
+ env_file :
10
+ - ./docker-compose.env
You can’t perform that action at this time.
0 commit comments