update props to latest version
[maven-build-process.git] / build / docker / build-environment.yml
blob07c91bf37ebde986b8534afbbabc791021414d94
2 # This file is part of maven-build-process. It is subject to the license terms in the LICENSE file found in the top-level
3 # directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of maven-build-process,
4 # including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 # in the LICENSE file.
8 version: '2'
10 services:
11   # see https://hub.docker.com/r/sebhoss/maven-build-environment/
12   maven-build-environment:
13     build:
14       context: "../../"
15       dockerfile: Dockerfile
16     image: sebhoss/maven-build-environment
17   verify-project:
18     image: sebhoss/maven-build-environment:latest
19     container_name: maven-build-process-verifier
20     depends_on:
21       - maven-build-environment
22     volumes:
23       - "../../:/project"
24     working_dir: /workspace
25     command: bash -c "cp -af /project/. /workspace/ && mvn clean verify -s /config/local-nexus-mirror.xml -Dmaven.repo.local=/repository"
26     networks:
27       - nexus
28       - sonarqube
30 networks:
31   nexus:
32     external:
33       name: nexus_nexus
34   sonarqube:
35     external:
36       name: sonarqube_sonarqube