@@ -176,9 +176,11 @@ func serviceSpec(r resourceSpecMap) string {
176176func main () {
177177 pkger .Include ("/templates" )
178178 pkger .Include ("/queries" )
179- var skipIntrospector , leavePostgresUp , reusePostgres , logIntrospector , printToStdOut bool
180- var outputDir string
179+ var skipIntrospector , leavePostgresUp , reusePostgres , logIntrospector , printToStdOut , skipIntrospectorPull bool
180+ var outputDir , introspectorRef string
181181 flag .BoolVar (& skipIntrospector , "skip-introspector" , false , "Skip running an import, use existing data" )
182+ flag .BoolVar (& skipIntrospectorPull , "skip-introspector-pull" , false , "Skip pulling the introspector docker image. Allows for using a local image" )
183+ flag .StringVar (& introspectorRef , "introspector-ref" , "" , "Override the introspector docker image to use" )
182184 flag .BoolVar (& leavePostgresUp , "leave-postgres" , false , "Leave postgres running in a docker container" )
183185 flag .BoolVar (& reusePostgres , "reuse-postgres" , false , "Reuse an existing postgres instance, if it is running" )
184186 flag .BoolVar (& logIntrospector , "log-introspector" , false , "Pass through logs from introspector docker image" )
@@ -210,7 +212,11 @@ func main() {
210212 if err != nil {
211213 panic (err )
212214 }
213- i , err := introspector .New (ds , postgresService , introspector.Options {LogDockerOutput : logIntrospector })
215+ i , err := introspector .New (ds , postgresService , introspector.Options {
216+ LogDockerOutput : logIntrospector ,
217+ SkipDockerPull : skipIntrospectorPull ,
218+ InspectorRef : introspectorRef ,
219+ })
214220 if err != nil {
215221 panic (err )
216222 }
0 commit comments