Skip to content

Commit c4cb2aa

Browse files
committed
made task that generates runtime info
1 parent dbc1279 commit c4cb2aa

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.phony: test bench clean bundle bundle-help ci sbom sbom-csv
1+
.phony: test bench clean bundle bundle-help ci sbom sbom-csv runtime-info
22

33
clean:
44
rm -rf target dev-resources/bench/*.json pom.xml
@@ -75,3 +75,10 @@ sbom: pom.xml
7575

7676
sbom-csv: sbom
7777
jq -r -f ./dev-resources/sbom/sbom_flat.jq ./target/xapipe.json > ./target/xapipe-sbom.csv
78+
79+
target/runtime-info.txt: bundle Dockerfile
80+
mkdir -p target
81+
docker build -t xapipe:local .
82+
docker run --rm --entrypoint sh xapipe:local -c 'set -e; echo "== OS =="; cat /etc/os-release; echo; echo "== Kernel =="; uname -a; echo; echo "== Java =="; /xapipe/runtimes/linux/bin/java -version 2>&1; echo; echo "== Packages =="; apk info -vv' > target/runtime-info.txt
83+
84+
runtime-info: target/runtime-info.txt

0 commit comments

Comments
 (0)