File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ ADD devstatscode.tar .
77ADD devstats-docker-images.tar .
88ADD grafana-bins.tar .
99RUN cp replacer patches/patch.sh /usr/bin/
10- RUN patch.sh testsrv devstats-demo.net
10+ RUN patch.sh testsrv devstats-demo.net 'cncf prometheus'
11+ RUN patch.sh testsrv devstats.graphql.org 'graphql graphqljs graphiql expressgraphql graphqlspec'
1112RUN make -f ./images/Makefile.full dockerinstall
1213RUN make -f ./images/Makefile.full links
1314FROM alpine
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ ADD devstatscode.tar .
77ADD devstats-docker-images.tar .
88ADD grafana-bins.tar .
99RUN cp replacer patches/patch.sh /usr/bin/
10- RUN patch.sh testsrv devstats-demo.net
10+ RUN patch.sh testsrv devstats-demo.net 'cncf prometheus'
11+ RUN patch.sh testsrv devstats.graphql.org 'graphql graphqljs graphiql expressgraphql graphqlspec'
1112RUN make -f ./images/Makefile.minimal dockerinstall
1213FROM alpine
1314RUN apk add git bash
Original file line number Diff line number Diff line change 99 echo " $0 : you need to specify hostname: devstats-demo.net, graphql.devstats.org etc."
1010 exit 2
1111fi
12+ if [ -z " $3 " ]
13+ then
14+ echo " $0 : projects to patch not specified, assuming all"
15+ projs=" ."
16+ else
17+ projs=" $3 "
18+ fi
1219if [ " $1 " = " prodsrv" ]
1320then
1421 fromh=' devstats.cncf.io'
1926 echo " $0 : 1st arg must be either prodsrv or testsrv, got: $1 "
2027 exit 3
2128fi
22- files=` find ./metrics/ -name vars.yaml -o -name sync_vars.yaml` || exit 4
29+ cd metrics || exit 4
30+ files=` find $projs -name vars.yaml -o -name sync_vars.yaml` || exit 5
2331for fn in $files
2432do
2533 echo " Patching $fn "
You can’t perform that action at this time.
0 commit comments