Skip to content

Commit e201411

Browse files
committed
made make task that dumps runtime info
1 parent a084afc commit e201411

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ clamav-demo:
149149
# lrsql package, including config, docs, JARs, admin UI files, JREs,
150150
# Windows executables, NOTICE and LICENSE
151151

152-
.phony: clean, clean-non-dl, bundle
152+
.phony: clean, clean-non-dl, bundle, runtime-info
153153

154154
clean:
155155
rm -rf target resources/public pom.xml
@@ -254,6 +254,14 @@ endif
254254

255255
bundle: target/bundle
256256

257+
# Runtime info (Docker)
258+
259+
target/runtime-info.txt: bundle Dockerfile
260+
mkdir -p target
261+
docker build -t lrsql:local .
262+
docker run --rm --entrypoint sh lrsql:local -c 'set -e; echo "== OS =="; cat /etc/os-release; echo; echo "== Kernel =="; uname -a; echo; echo "== Java =="; /lrsql/runtimes/linux/bin/java -version 2>&1; echo; echo "== Packages =="; apk info -vv' > target/runtime-info.txt
263+
runtime-info: target/runtime-info.txt
264+
257265
# *** Build Windows EXEs with launch4j ***
258266

259267
# `clean-exe` removes all pre-existing executables, so that they can be rebuilt.

0 commit comments

Comments
 (0)