@@ -176,9 +176,11 @@ func serviceSpec(r resourceSpecMap) string {
176
176
func main () {
177
177
pkger .Include ("/templates" )
178
178
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
181
181
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" )
182
184
flag .BoolVar (& leavePostgresUp , "leave-postgres" , false , "Leave postgres running in a docker container" )
183
185
flag .BoolVar (& reusePostgres , "reuse-postgres" , false , "Reuse an existing postgres instance, if it is running" )
184
186
flag .BoolVar (& logIntrospector , "log-introspector" , false , "Pass through logs from introspector docker image" )
@@ -210,7 +212,11 @@ func main() {
210
212
if err != nil {
211
213
panic (err )
212
214
}
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
+ })
214
220
if err != nil {
215
221
panic (err )
216
222
}
0 commit comments