Merge pull request #4997 from jpetazzo/apt-should-always-use-https

Use https://get.docker.io/ubuntu consistently
This commit is contained in:
Sven Dowideit
2014-04-08 11:24:07 +10:00
2 changed files with 18 additions and 2 deletions
+5
View File
@@ -273,6 +273,11 @@ EOF
# Upload repo
s3cmd --acl-public sync $APTDIR/ s3://$BUCKET/ubuntu/
cat <<EOF | write_to_s3 s3://$BUCKET/ubuntu/index
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get update
apt-get install -y apt-transport-https
fi
# Add the repository to your APT sources
echo deb $(s3_url)/ubuntu docker main > /etc/apt/sources.list.d/docker.list
# Then import the repository key