getconda.sh 708 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. # Helper script to get the right conda version inside of the container
  3. # This logic is put inside of the container rather than in the build script
  4. # so that we can easily do multi-platform builds
  5. arch=$1
  6. echo "arch", $arch
  7. if [[ "$arch" == "x86_64" || "$arch" == "amd64" ]]; then
  8. echo "Building the x86 Docker image"
  9. wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-1-Linux-x86_64.sh -O miniconda.sh
  10. elif [[ "$arch" == "aarch64" || "$arch" == "arm64" ]]; then
  11. echo "Ayy, arm64 in the house!"
  12. wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-1-Linux-aarch64.sh -O miniconda.sh
  13. else
  14. echo "unknown architecture detected?"
  15. echo $arch
  16. exit 1
  17. fi