prepare_build.sh 584 B

123456789101112
  1. #!/bin/bash
  2. # Move docker's storage location to scratch disk so we don't run out of space.
  3. echo 'DOCKER_OPTS="${DOCKER_OPTS} --graph=/tmpfs/docker"' | sudo tee --append /etc/default/docker
  4. # Use container registry mirror for pulling docker images (should make downloads faster)
  5. # See https://cloud.google.com/container-registry/docs/using-dockerhub-mirroring
  6. echo 'DOCKER_OPTS="${DOCKER_OPTS} --registry-mirror=https://mirror.gcr.io"' | sudo tee --append /etc/default/docker
  7. sudo service docker restart
  8. # All artifacts come here
  9. mkdir artifacts
  10. export ARTIFACT_DIR=$(pwd)/artifacts