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