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