From c86f84944d77d4150a22677c435371b327cd3e84 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 19 Mar 2019 08:35:49 +0100 Subject: [PATCH] Add docker-sync config to step up docker-usage on macOS. (#8948) Motivation: docker-sync.io helps to speed up docker FS access on macOS and so make builds there a lot faster. We should add some config to help users use it. Modifications: Add docker-sync configs for centos-6.18 which is what we use for releases. Result: Faster builds via docker and when using macOS possible. --- docker/docker-sync-compose.centos-6.18.yaml | 34 +++++++++++++++++++++ docker/docker-sync.centos-6.18.yaml | 8 +++++ 2 files changed, 42 insertions(+) create mode 100644 docker/docker-sync-compose.centos-6.18.yaml create mode 100644 docker/docker-sync.centos-6.18.yaml diff --git a/docker/docker-sync-compose.centos-6.18.yaml b/docker/docker-sync-compose.centos-6.18.yaml new file mode 100644 index 0000000000..7f3f2aa977 --- /dev/null +++ b/docker/docker-sync-compose.centos-6.18.yaml @@ -0,0 +1,34 @@ +version: "3" + +services: + + runtime-setup: + image: netty:centos-6-1.8 + build: + args: + centos_version : "6" + java_version : "1.8.202" + + test: + image: netty:centos-6-1.8 + volumes: + - code-sync:/code:nocopy + + test-leak: + image: netty:centos-6-1.8 + volumes: + - code-sync:/code:nocopy + + test-boringssl-static: + image: netty:centos-6-1.8 + volumes: + - code-sync:/code:nocopy + + shell: + image: netty:centos-6-1.8 + volumes: + - code-sync:/code:nocopy + +volumes: + code-sync: + external: true diff --git a/docker/docker-sync.centos-6.18.yaml b/docker/docker-sync.centos-6.18.yaml new file mode 100644 index 0000000000..98a3c121ef --- /dev/null +++ b/docker/docker-sync.centos-6.18.yaml @@ -0,0 +1,8 @@ +version: "2" + +compose-dev-file-path: 'docker-sync-compose.centos-6.18.yaml' + +syncs: + #IMPORTANT: ensure this name is unique and does not match your other application container name + code-sync: #tip: add -sync and you keep consistent names as a convention + src: '../'