2f0c00187a
Motivation: As we use the docker files for the CI we should use the delegated mount option to speed up builds. See https://docs.docker.com/docker-for-mac/osxfs-caching/#delegated Modifications: Use delegated mount option Result: Faster builds when using docker
43 lines
1010 B
YAML
43 lines
1010 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: netty:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.centos
|
|
|
|
common: &common
|
|
image: netty:default
|
|
depends_on: [runtime-setup]
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh:delegated
|
|
- ~/.gnupg:/root/.gnupg:delegated
|
|
- ..:/code:delegated
|
|
working_dir: /code
|
|
|
|
test-leak:
|
|
<<: *common
|
|
command: /bin/bash -cl "./mvnw -Pleak clean install -Dio.netty.testsuite.badHost=netty.io"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -cl "./mvnw clean install -Dio.netty.testsuite.badHost=netty.io"
|
|
|
|
test-boringssl-static:
|
|
<<: *common
|
|
command: /bin/bash -cl "./mvnw -P boringssl clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true"
|
|
|
|
shell:
|
|
<<: *common
|
|
environment:
|
|
- SANOTYPE_USER
|
|
- SANOTYPE_PASSWORD
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh:delegated
|
|
- ~/.gnupg:/root/.gnupg:delegated
|
|
- ..:/code:delegated
|
|
- ~/.m2:/root/.m2:delegated
|
|
entrypoint: /bin/bash
|