setup tests for HelloWorldService
This commit is contained in:
23
docker-compose.test.yml
Normal file
23
docker-compose.test.yml
Normal file
@ -0,0 +1,23 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
test:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: tester
|
||||
image: jaxws-test:latest
|
||||
container_name: jaxws-unit-tests
|
||||
volumes:
|
||||
# Mount source for live testing during development
|
||||
- ./src:/app/src:ro
|
||||
- ./pom.xml:/app/pom.xml:ro
|
||||
# Mount Maven cache to speed up subsequent test runs
|
||||
- maven-cache:/root/.m2
|
||||
command: mvn test
|
||||
environment:
|
||||
- MAVEN_OPTS=-Xmx512m
|
||||
|
||||
volumes:
|
||||
maven-cache:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user