Skip to content

Commit 53e6d9d

Browse files
adobrzhanskyrafie
andauthored
Relocate docker data root dir (#945)
* [ci] relocate docker data root dir Co-authored-by: rafie <rafi@redislabs.com>
1 parent cbe77fb commit 53e6d9d

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.circleci/config.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: 2.1
22

33
commands:
4-
54
abort_for_valgrind:
65
steps:
76
- run:
@@ -56,20 +55,16 @@ commands:
5655
circleci step halt
5756
fi
5857
59-
relocate-docker-storage:
58+
relocate-docker-data-root:
6059
description: >-
61-
If this runs in parallel it can slaughter docker builds due to behaviour in the overlay2
62-
tree having missing bits. This mitigates that by ensuring we run it only once. This could
63-
have parallelization consequences if everything lines up.
60+
Relocates docker data root from /var/lib/docker/ cause it allocated in a partition too small to contain the redisai-gpu image.
6461
steps:
6562
- run:
66-
name: Relocate docker overlay2 dir
63+
name: Relocate docker data root dir
6764
command: |
6865
sudo systemctl stop docker
6966
sudo mkdir -p /var2/lib/docker
70-
sudo mv /var/lib/docker/overlay2 /var2/lib/docker
71-
sudo mkdir /var/lib/docker/overlay2
72-
sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
67+
echo '{ "data-root": "/var2/lib/docker" }' | sudo tee /etc/docker/daemon.json
7368
sudo systemctl start docker
7469
7570
setup-automation:
@@ -211,7 +206,7 @@ commands:
211206
- restore_cache:
212207
keys:
213208
- v1.2-tests_data-gpu
214-
- relocate-docker-storage
209+
- relocate-docker-data-root
215210
- run:
216211
name: Build
217212
command: |
@@ -309,7 +304,7 @@ jobs:
309304
- abort_for_noci
310305
- early_return_for_forked_pull_requests
311306
- checkout-all
312-
- relocate-docker-storage
307+
- relocate-docker-data-root
313308
- restore_cache:
314309
keys:
315310
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-<<parameters.osnick>>-<<parameters.target>>
@@ -411,7 +406,6 @@ jobs:
411406
build-and-test-gpu:
412407
machine:
413408
enabled: true
414-
docker_layer_caching: true
415409
resource_class: gpu.nvidia.small
416410
image: ubuntu-2004-cuda-11.2:202103-01
417411

@@ -423,7 +417,6 @@ jobs:
423417
build-and-test-gpu-for-forked-prs:
424418
machine:
425419
enabled: true
426-
docker_layer_caching: true
427420
resource_class: gpu.nvidia.small
428421
image: ubuntu-2004-cuda-11.2:202103-01
429422

@@ -525,6 +518,13 @@ on-any-branch-but-tags: &on-any-branch-but-tags
525518
tags:
526519
ignore: /.*/
527520

521+
always: &always
522+
filters:
523+
branches:
524+
only: /.*/
525+
tags:
526+
only: /.*/
527+
528528
never: &never
529529
filters:
530530
branches:
@@ -592,7 +592,6 @@ workflows:
592592
version: 2
593593
build_and_package:
594594
jobs:
595-
596595
- lint:
597596
<<: *on-any-branch
598597
- build-and-test:
@@ -616,7 +615,6 @@ workflows:
616615
lite:
617616
- "REDISAI_LITE=0 PUBLISH=1"
618617
- "REDISAI_LITE=1"
619-
620618
- platforms-build-gpu:
621619
context: common
622620
<<: *after-build-and-test

0 commit comments

Comments
 (0)