Skip to content

Commit

Permalink
add get docker base script to download pre-compiled docker base image (
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored and Shuotian Cheng committed Oct 26, 2016
1 parent 293db92 commit 42f1b55
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions get_docker-base.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 42f1b55

Please sign in to comment.