You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
-[Setting up Cloud Spanner](#setting-up-cloud-spanner)
17
17
-[Setting up importers](#setting-up-importers)
18
18
-[TarGz](#targz)
19
+
-[Deb](#deb)
19
20
-[GCP](#gcp)
20
21
-[Windows](#windows)
21
22
-[WSUS](#wsus)
@@ -205,6 +206,13 @@ This is a simple importer that traverses repositories and looks for `.tar.gz` fi
205
206
206
207
1.`-targz_repo_path` which should point to the path on the local file system that contains `.tar.gz` files
207
208
209
+
#### Deb
210
+
211
+
This is very similar to the TarGz importer except that it looks for `.deb` packages. Once found it will hash the first and the last 10MB of the file to check if it was already processed. This is done to prevent hashing the whole file every time the repository is scanned for new sources. To use this importer you need to specify the following flag(s):
212
+
213
+
1.`-deb_repo_path` which should point to the path on the local file system that contains `.deb` files
214
+
215
+
208
216
#### GCP
209
217
210
218
This importer can extract files from GCP disk [images](https://cloud.google.com/compute/docs/images). This is done in few steps:
processingWorkerCount=flag.Int("processing_worker_count", 2, "Number of processing workers.")
44
-
importersToRun=flag.String("importers", strings.Join([]string{}, ","), fmt.Sprintf("Importers to be run: %s,%s,%s,%s", gcp.RepoName, targz.RepoName, windows.RepoName, wsus.RepoName))
45
+
importersToRun=flag.String("importers", strings.Join([]string{}, ","), fmt.Sprintf("Importers to be run: %s,%s,%s,%s,%s", gcp.RepoName, targz.RepoName, windows.RepoName, wsus.RepoName, deb.RepoName))
45
46
exportersToRun=flag.String("exporters", strings.Join([]string{}, ","), fmt.Sprintf("Exporters to be run: %s,%s", gcpExporter.Name, postgresExporter.Name))
46
47
jobStorage=flag.String("storage", "", "Storage that should be used for storing data about processing jobs, can have one of the two values: postgres, cloudspanner")
47
48
cacheDir=flag.String("cache_dir", "/tmp/", "Path to cache dir used to store local cache.")
@@ -69,6 +70,8 @@ var (
69
70
windowsRepoPath=flag.String("windows_iso_repo_path", "", "Path to Windows ISO repository.")
70
71
// tarGz importer flags
71
72
tarGzRepoPath=flag.String("targz_repo_path", "", "Path to TarGz repository.")
73
+
// deb importer flags
74
+
debRepoPath=flag.String("deb_repo_path", "", "Path to Deb repository.")
0 commit comments