-
Notifications
You must be signed in to change notification settings - Fork 3
/
all_gather_plus_pics.sh
executable file
·43 lines (36 loc) · 1.2 KB
/
all_gather_plus_pics.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#/bin/bash
#This script has a few for loops that are run multiple times that could probably be made into a function in the future where parameters are passed in a more resonable way. For now, this works... It takes about an hour to run bbecause helm pull is so slow. Google had a distributed pull tool that helped make those much faster, but bitnami charts are still VERY slow... we should explore some sort of distributed curl or wget tool in the future... I think there is a library written in Go we map eventually be able to use?
#Start your engines
start=`date +%s`
#import functions
source gatherallfunctions
#This sections calls each function
SETVERS
HELMUPDATE
GETKUBESTABLE
GETKUBEINCUBATOR
#GETKUBECHARTS
GETKUBECHARTDEPS
GETROOKCHARTS
GETROOKCHARTDEPS
GETRANCHERSTABLECHARTS
GETRANCHERSTABLECHARTDEPS
GETRANCHERLATESTCHARTS
GETRANCHERLATESTCHARTDEPS
GETBITNAMICHARTS
GETBITNAMICHARTDEPS
GETVMWARECHARTS
GETVMWARECHARTDEPS
CLEANUP
FIXINDEXFILES #the fixindexfiles function must be run before the chartpics function
GETCHARTPICS
CREATETAR
TOTHEBUCKETS
#end functions
end=`date +%s`
runtime=$((end-start))
runtime_in_minutes=$(( $runtime / 60 ))
echo
echo
echo 'your run time was ' $runtime_in_minutes ' minutes!'
echo