Search code examples
linuxopenshiftrhelminishift

How to install minishift in a customized directory in linux


While trying to start minishift, it automatically updates the cache in the home directory.

/home/abc/.minishift/cache/.....

However I want minishift to use a custom directory instead of the default home directory as I am running out of space

Can this be achieved by changing any parameters during ./minishift start

Tried codeready containers too, but it copies in the default home directory..

FATA Failed to copy embedded 'crc_libvirt_4.5.1.crcbundle' from /opt/data/crc-linux-1.13.0-amd64/crc to /home/abc/.crc/cache/crc_libvirt_4.5.1.crcbundle: write /home/abc/.crc/cache/crc_libvirt_4.5.1.crcbundle: no space left on device 

Solution

  • I found the answer to this :

     export MINISHIFT_HOME=/opt/softwares/
     echo 'export MINISHIFT_HOME=/opt/softwares/' >> ~/.bashrc
    

    This helped in solving the redirecting the installation from home to customized directory. Similar for crc installation as well.