setup.sh 855 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. # bash strict mode
  3. set -euo pipefail
  4. # Create docker image
  5. echo "Setting up docker image for swe-agent..."
  6. arch=$(uname -m)
  7. if [[ "$arch" == "x86_64" ]]; then
  8. echo "Building the x86 Docker image"
  9. docker build -t swe-agent --build-arg MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-1-Linux-x86_64.sh -f docker/swe.Dockerfile .
  10. elif [[ "$arch" == "aarch64" || "$arch" == "arm64" ]]; then
  11. echo "Ayy, arm64 in the house!"
  12. docker build -t swe-agent --build-arg MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-1-Linux-aarch64.sh -f docker/swe.Dockerfile .
  13. else
  14. echo "unknown architecture detected?"
  15. echo $arch
  16. exit 1
  17. fi
  18. # build eval.Dockerfile
  19. echo "Setting up docker image for evaluation..."
  20. docker build -t swe-eval -f docker/eval.Dockerfile .
  21. echo "Done with setup!"