Skip to content

Commit

Permalink
remove unknown mac vendors from fingerbank-db image
Browse files Browse the repository at this point in the history
  • Loading branch information
julsemaan committed Dec 8, 2022
1 parent 607da51 commit 6f8afc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions containers/fingerbank-db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ COPY --from=0 /usr/local/fingerbank/db/fingerbank_Local.db /usr/local/fingerbank

RUN curl --fail --retry 3 -H "Authorization: Bearer ${FINGERBANK_BUILD_API_KEY}" https://api.fingerbank.org/api/v2/download/db > /usr/local/fingerbank/db/fingerbank_Upstream.db

# Delete the unknown MAC vendors, they aren't useful in this image (meant to be used for the SaaS)
RUN sqlite3 /usr/local/fingerbank/db/fingerbank_Upstream.db "delete from mac_vendor where name like 'Unknown%';"
RUN sqlite3 /usr/local/fingerbank/db/fingerbank_Upstream.db "VACUUM;"

0 comments on commit 6f8afc7

Please sign in to comment.