In your bootstrap.sh, just include something like:
miniconda=Miniconda3-3.7.4-Linux-x86_64.sh cd /vagrant if [[ ! -f $miniconda ]]; then wget --quiet http://repo.continuum.io/miniconda/$miniconda fi chmod +x $miniconda ./$miniconda -b -p /opt/anaconda cat >> /home/vagrant/.bashrc << END
The -b works in batch mode and is what you are looking for:
>>>> ./Miniconda-3.7.0-Linux-x86_64.sh -h usage: ./Miniconda-3.7.0-Linux-x86_64.sh [options] Installs Miniconda 3.7.0 -b run install in batch mode (without manual intervention), it is expected the license terms are agreed upon -f no error if install prefix already exists -h print this help message and exit -p PREFIX install prefix, defaults to /Users/phil/miniconda
I also usually put Miniconda (or a link to it) directly in the " vagrant " where bootstrap.sh is located. Thus, you do not download from the Internet during each tramp (after init or destroy).
source share