This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p out | |
for img in `grep image $1| sed -e 's/^.*image\: //g'`; | |
do | |
cleanname=${img/\//-} | |
tag=`docker images | grep $img | awk '{print $2}'` | |
echo "Exporting image: $img, tag:$tag ($cleanname)..." | |
docker save $img -o out/$cleanname.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -print0 | xargs -0 sed -i -e "s/_id/id/g" | |
find . -type f -print0 | xargs -0 sed -i -e "s/\s//g" | |
find . -type f -print0 | xargs -0 sed -i -e :a -e '/$/N; s/[\r\n]//; ta;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1434903547000", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:List*", | |
"s3:Get*" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: http://askubuntu.com/questions/416937/apt-get-doesnt-work-behind-a-proxy | |
# 1st. Use --print-uris param to just get the deb files needed to perform installation | |
sudo apt-get install --print-uris --yes lib32ncurses5 lib32bz2-1.0 libxtst6:i386 lib32stdc++6 libgtk2.0-0:i386 > download.txt | |
# 2nd. Filter output | |
cat download.txt | grep 'http.*deb' | cut -d ' ' -f 1 | sed "s/'//g" > urls.txt |