Use delegated docker mount option to speedup builds (#9441)

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
This commit is contained in:
Norman Maurer 2019-08-13 10:27:21 +02:00
parent 16e290796d
commit 2f0c00187a

View File

@ -12,9 +12,9 @@ services:
image: netty:default image: netty:default
depends_on: [runtime-setup] depends_on: [runtime-setup]
volumes: volumes:
- ~/.ssh:/root/.ssh - ~/.ssh:/root/.ssh:delegated
- ~/.gnupg:/root/.gnupg - ~/.gnupg:/root/.gnupg:delegated
- ..:/code - ..:/code:delegated
working_dir: /code working_dir: /code
test-leak: test-leak:
@ -35,8 +35,8 @@ services:
- SANOTYPE_USER - SANOTYPE_USER
- SANOTYPE_PASSWORD - SANOTYPE_PASSWORD
volumes: volumes:
- ~/.ssh:/root/.ssh - ~/.ssh:/root/.ssh:delegated
- ~/.gnupg:/root/.gnupg - ~/.gnupg:/root/.gnupg:delegated
- ..:/code - ..:/code:delegated
- ~/.m2:/root/.m2 - ~/.m2:/root/.m2:delegated
entrypoint: /bin/bash entrypoint: /bin/bash