-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* arm64 and ppc64le builds Signed-off-by: Prabhu Subramanian <[email protected]> ppc64 build script Signed-off-by: Prabhu Subramanian <[email protected]> * Tweaks Signed-off-by: Prabhu Subramanian <[email protected]> --------- Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
23 changed files
with
238 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf plugins/goversion | ||
rm -rf plugins/trivy | ||
rm -rf plugins/cargo-auditable | ||
rm -rf plugins/osquery | ||
mkdir -p plugins/osquery | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
pushd thirdparty/$plug | ||
make build/linux_ppc64le | ||
chmod +x build/* | ||
cp -rf build/* ../../plugins/$plug/ | ||
rm -rf build | ||
popd | ||
done | ||
|
||
./plugins/goversion/goversion-linux-ppc64le | ||
./plugins/trivy/trivy-cdxgen-linux-ppc64le -v | ||
./plugins/cargo-auditable/cargo-auditable-cdxgen-linux-ppc64le | ||
|
||
chmod +x packages/ppc64/build-ppc64.sh | ||
pushd packages/ppc64 | ||
./build-ppc64.sh | ||
popd | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf plugins/goversion | ||
rm -rf plugins/trivy | ||
rm -rf plugins/cargo-auditable | ||
rm -rf plugins/osquery | ||
mkdir -p plugins/osquery | ||
|
||
wget https://github.com/osquery/osquery/releases/download/5.9.1/osquery-5.9.1.windows_arm64.zip | ||
unzip osquery-5.9.1.windows_arm64.zip | ||
cp "osquery-5.9.1.windows_arm64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-arm64.exe | ||
sha256sum plugins/osquery/osqueryi-windows-arm64.exe > plugins/osquery/osqueryi-windows-arm64.exe.sha256 | ||
rm -rf osquery-5.9.1.windows_arm64 | ||
rm osquery-5.9.1.windows_arm64.zip | ||
|
||
wget https://github.com/osquery/osquery/releases/download/5.9.1/osquery-5.9.1_1.linux_aarch64.tar.gz | ||
tar -xvf osquery-5.9.1_1.linux_aarch64.tar.gz | ||
cp opt/osquery/bin/osqueryd plugins/osquery/osqueryi-linux-arm64 | ||
upx -9 --lzma plugins/osquery/osqueryi-linux-arm64 | ||
sha256sum plugins/osquery/osqueryi-linux-arm64 > plugins/osquery/osqueryi-linux-arm64.sha256 | ||
rm -rf etc usr var opt | ||
rm osquery-5.9.1_1.linux_aarch64.tar.gz | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
mv ../../plugins/$plug/*arm64* plugins/$plug/ | ||
done |
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,8 @@ | ||
// Debug mode flag | ||
const DEBUG_MODE = | ||
process.env.CDXGEN_DEBUG_MODE === "debug" || | ||
process.env.NODE_ENV === "development"; | ||
|
||
if (DEBUG_MODE) { | ||
console.log("cdxgen plugins check"); | ||
} |
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,31 @@ | ||
{ | ||
"name": "@cyclonedx/cdxgen-plugins-bin-arm64", | ||
"version": "1.4.0", | ||
"description": "Arm64 binary plugins to supercharge @cyclonedx/cdxgen npm package", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cyclonedx/cdxgen-plugins-bin.git" | ||
}, | ||
"keywords": [ | ||
"cdxgen", | ||
"sbom", | ||
"bom", | ||
"plugins", | ||
"dependency", | ||
"appsec" | ||
], | ||
"author": "Prabhu Subramanian <[email protected]>", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/cyclonedx/cdxgen-plugins-bin/issues" | ||
}, | ||
"homepage": "https://github.com/cyclonedx/cdxgen-plugins-bin#readme", | ||
"files": [ | ||
"*.js", | ||
"plugins/" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
] | ||
} |
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,4 @@ | ||
goversion/ | ||
trivy/ | ||
cargo-auditable/ | ||
osquery/ |
Empty file.
Empty file.
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,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf plugins/goversion | ||
rm -rf plugins/trivy | ||
rm -rf plugins/cargo-auditable | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
mv ../../plugins/$plug/*ppc64* plugins/$plug/ | ||
done |
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,8 @@ | ||
// Debug mode flag | ||
const DEBUG_MODE = | ||
process.env.CDXGEN_DEBUG_MODE === "debug" || | ||
process.env.NODE_ENV === "development"; | ||
|
||
if (DEBUG_MODE) { | ||
console.log("cdxgen plugins check"); | ||
} |
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,34 @@ | ||
{ | ||
"name": "@cyclonedx/cdxgen-plugins-bin-ppc64", | ||
"version": "1.4.0", | ||
"description": "ppc64 binary plugins to supercharge @cyclonedx/cdxgen npm package", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cyclonedx/cdxgen-plugins-bin.git" | ||
}, | ||
"keywords": [ | ||
"cdxgen", | ||
"sbom", | ||
"bom", | ||
"plugins", | ||
"dependency", | ||
"appsec" | ||
], | ||
"author": "Prabhu Subramanian <[email protected]>", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/cyclonedx/cdxgen-plugins-bin/issues" | ||
}, | ||
"homepage": "https://github.com/cyclonedx/cdxgen-plugins-bin#readme", | ||
"files": [ | ||
"*.js", | ||
"plugins/" | ||
], | ||
"os": [ | ||
"linux" | ||
], | ||
"cpu": [ | ||
"ppc64" | ||
] | ||
} |
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,4 @@ | ||
goversion/ | ||
trivy/ | ||
cargo-auditable/ | ||
osquery/ |
Empty file.
Empty file.
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
Oops, something went wrong.