setup.sh 809 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Create docker image
  3. echo "Setting up docker image for swe-agent..."
  4. arch=$(uname -m)
  5. if [[ "$arch" == "x86_64" ]]; then
  6. echo "Building the x86 Docker image"
  7. 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 .
  8. elif [[ "$arch" == "aarch64" || "$arch" == "arm64" ]]; then
  9. echo "Ayy, arm64 in the house!"
  10. 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 .
  11. else
  12. echo "unknown architecture detected?"
  13. echo $arch
  14. exit 1
  15. fi
  16. # build eval.Dockerfile
  17. echo "Setting up docker image for evaluation..."
  18. docker build -t swe-eval -f docker/eval.Dockerfile .
  19. echo "Done with setup!"