@@ -29,29 +29,22 @@ echo -e "${red_start}Installed wget${nocolor_start}"
2929sudo dnf install tmux -y
3030echo -e " ${red_start} Installed tmux${nocolor_start} "
3131
32- # retrieve and install miniforge in /tmp/
33- # assuming EBS volume is already attached to instance
32+ # retrieve and install miniforge
3433echo -e " ${red_start} Starting Miniforge3 installation${nocolor_start} "
3534mkdir -p /tmp
3635wget " https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh" -O /tmp/Miniforge3.sh
37- bash /tmp/Miniforge3.sh -b -p /tmp /conda
36+ bash /tmp/Miniforge3.sh -b -p ~ /conda
3837rm -f /tmp/Miniforge.sh
39- source " /tmp/conda/etc/profile.d/conda.sh"
40- source " /tmp/conda/etc/profile.d/mamba.sh"
38+ source ~ /conda/bin/activate
4139
4240echo -e " ${red_start} Completed Miniforge3 installation${nocolor_start} "
4341
4442# add conda and mamba to path
4543mamba init
4644
47- # set paths to environment and package directories
48- printf ' \n# set conda environment and package directories' >> ~ /.bashrc
49- printf ' \nexport CONDA_ENVS_PATH=/tmp/conda/envs' >> ~ /.bashrc
50- printf ' \nexport CONDA_PKGS_DIRS=/tmp/conda/pkgs' >> ~ /.bashrc
51- source ~ /.bashrc
45+ # # set paths to environment and package directories
5246
53- # create jupyter environment under /tmp/conda/envs/
54- # (in EBS storage to save space in home directory)
47+ # create jupyter environment
5548mamba create --name jupyter python=3.11 -y
5649echo -e " ${red_start} Created jupyter environment${nocolor_start} "
5750
0 commit comments