Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Pull dependency images
from clean
using wget,python:3.4.1
#Prepare Python for version grabbing
cmd pip install requests --quiet
# Fetch version
batch
echo import sys > getRelease.py
echo import requests >> getRelease.py
echo import re >> getRelease.py
echo host = 'http://aws.amazon.com/releasenotes/CLI?browse=1' >> getRelease.py
echo headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0'} >> getRelease.py
echo r = requests.get(host , headers=headers, timeout=10) >> getRelease.py
echo print(re.findall('Release: AWS Command Line Interface (\d*\.\d*\.\d*)', r.text )[0]) >> getRelease.py
cmd python getRelease.py
var tag = last
meta tag=tag
# Setup meta
meta title="AWS Command Line Interface"
meta namespace="amazon-web-services"
meta name="cli"
# Set working directory
cmd mkdir C:\Workspace
workdir C:\Workspace
# Download
cmd wget --no-check-certificate -O aws-cli.msi https://s3.amazonaws.com/aws-cli/AWSCLI32.msi
# Install
cmd aws-cli.msi /quiet
workdir C:\
cmd mkdir C:\aws-info
cmd wget --no-check-certificate https://raw.githubusercontent.com/turboapps/turbome/master/aws/cli/aws-info.bat
cmd copy aws-info.bat C:\aws-info\aws-info.bat
# Cleanup
cmd rmdir /s /q c:\Workspace
cmd rmdir /s /q c:\wget
cmd rmdir /s /q c:\Python34
startup file ("cmd", "/k C:\aws-info\aws-info.bat")