How to Increase Disk Space GitLab Runner

I have GitLab runner running on AWS and I've connected it to my GitLab Project. During on CI/CD Pipeline I want to run End to End test on my React Native mobile using reactnativecommunity/react-native-android image. But when want to create SDK the job fail and display error No space left on device. However when I run df -h on .gitlab-ci.yml script display disk overlay only 16G. On GitLab Runner config i use amazonec2-instance-type=c5d.large who has 50GB storage disk. My question is how to increase the storage space disk on GitLab runner pipeline more than 16G. Here the output on running df -h:

Filesystem Size Used Avail Use% Mounted on
overlay 16G 14G 2.2G 86% /
tmpfs 64M 0 64M 0% /dev
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/nvme0n1p1 16G 14G 2.2G 86% /builds
shm 64M 0 64M 0% /dev/shm

Upvotes: 2

Views: 3563

Answers (1)

strongjz
strongjz

Reputation: 4491

The AWS Documentation has it documented here

This question was also answered here

Upvotes: 0

Related Questions