forked from stackrox/stackrox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dockerfile): Remove stackrox-data Dockerfile (stackrox#6653)
- Loading branch information
1 parent
ef2b8c8
commit 13af87a
Showing
9 changed files
with
54 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/THIRD_PARTY_NOTICES/ | ||
/docs/ | ||
/rhel/docs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Fetches data used by the stackrox:main image | ||
|
||
set -euxo pipefail | ||
|
||
fetch_stackrox_data() { | ||
mkdir -p /tmp/external-networks | ||
local latest_prefix | ||
latest_prefix="$(curl --fail https://definitions.stackrox.io/external-networks/latest_prefix)" | ||
curl --fail --output /tmp/external-networks/checksum "https://definitions.stackrox.io/${latest_prefix}/checksum" | ||
test -s /tmp/external-networks/checksum | ||
|
||
curl --fail --output /tmp/external-networks/networks "https://definitions.stackrox.io/${latest_prefix}/networks" | ||
test -s /tmp/external-networks/networks | ||
|
||
sha256sum -c <( echo "$(cat /tmp/external-networks/checksum) /tmp/external-networks/networks" ) | ||
|
||
mkdir /stackrox-data/external-networks | ||
zip -jr /stackrox-data/external-networks/external-networks.zip /tmp/external-networks | ||
rm -rf /tmp/external-networks | ||
} | ||
|
||
fetch_stackrox_data |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters