Skip to content

Commit 7aca1eb

Browse files
chayimalonre24
andauthored
Fixing disk space issue in CI runs (#853)
Co-authored-by: alonre24 <alonreshef24@gmail.com>
1 parent e4e5d98 commit 7aca1eb

File tree

1 file changed

+14
-43
lines changed

1 file changed

+14
-43
lines changed

.circleci/config.yml

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -221,22 +221,32 @@ jobs:
221221
platform: debian
222222

223223
platforms-build:
224+
machine:
225+
enabled: true
226+
docker_layer_caching: true
227+
resource_class: small
228+
image: ubuntu-2004:202107-02
224229
parameters:
225230
lite: # LITE value during make
226231
type: string
227232
osnick: # OSNICK value for the base platform of the docker
228233
type: string
229234
target: # CPU|GPU
230235
type: string
231-
docker:
232-
- image: redisfab/rmbuilder:6.2.5-x64-buster
233236
steps:
234237
- abort_for_docs
235238
- abort_for_noci
236239
- early_return_for_forked_pull_requests
237-
- setup_remote_docker:
238-
docker_layer_caching: true
239240
- checkout-all
241+
- run:
242+
name: Relocate docker overlay2 dir
243+
command: |
244+
sudo systemctl stop docker
245+
sudo mkdir -p /var2/lib/docker
246+
sudo mv /var/lib/docker/overlay2 /var2/lib/docker
247+
sudo mkdir /var/lib/docker/overlay2
248+
sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
249+
sudo systemctl start docker
240250
- restore_cache:
241251
keys:
242252
- v1.2.5-deps-{{ checksum "get_deps.sh" }}-<<parameters.osnick>>-<<parameters.target>>
@@ -342,45 +352,6 @@ jobs:
342352
steps:
343353
- valgrind-general-steps
344354

345-
# build-macos:
346-
# macos:
347-
# xcode: 11.3.0
348-
# steps:
349-
# - abort_for_docs
350-
# - run:
351-
# name: Fix macOS Python installation
352-
# command: |
353-
# brew reinstall -f python2
354-
# - build-steps:
355-
# platform: macos
356-
#
357-
# build-multiarch-docker:
358-
# machine:
359-
# enabled: true
360-
# image: cimg/base:2020.01
361-
# steps:
362-
# - abort_for_docs
363-
# - checkout-all
364-
# - run:
365-
# name: Checkout LFS
366-
# command: |
367-
# curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
368-
# sudo apt-get install -y git-lfs
369-
# git lfs install
370-
# git lfs pull
371-
# - run:
372-
# name: Setup Docker client experimental features
373-
# command: |
374-
# sudo ./opt/readies/bin/getdocker --just-enable-exp
375-
# docker version
376-
# - run:
377-
# name: Build
378-
# command: |
379-
# sudo docker login -u redisfab -p $DOCKER_REDISFAB_PWD
380-
# cd opt/build/docker
381-
# make build
382-
# sudo make publish
383-
384355
# internal PRs execute build-and-test either in a workflow or
385356
# via a github action trigger
386357
build-and-test-gpu:

0 commit comments

Comments
 (0)