From 8996aca727ed6c986945e9f4ce91f5ecd29a76d4 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Wed, 26 Oct 2016 00:46:39 +0000 Subject: [PATCH] add get docker base script to download pre-compiled docker base image --- get_docker-base.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 get_docker-base.sh diff --git a/get_docker-base.sh b/get_docker-base.sh new file mode 100755 index 000000000000..088b6bf46b29 --- /dev/null +++ b/get_docker-base.sh @@ -0,0 +1,17 @@ +#!/bin/bash +## This script is to retrieve and import the docker-base image from +## local folder where the image is built on the local machine +## +## USAGE: +## ./get_docker-base.sh + +set -x -e + +. ./functions.sh + +## [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Read-only link of Azure Blob storage with shared access signature (SAS)")] +BASE_URL="https://sonicstorage.blob.core.windows.net/packages/docker-base.ea507753d98b0769e2a15be13003331f8ad38d1c15b40a683e05fc53b1463b10.gz?sv=2015-04-05&sr=b&sig=DjbdpLaslHeiaZLwFuauhPA2wR0v7kOH5yPHiAbzgBc%3D&se=2016-10-28T13%3A04%3A23Z&sp=r" + +base_image_name=docker-base +docker_try_rmi $base_image_name +curl "$BASE_URL" | docker load