From 16b5407ed120b899f900caa3e870d3eab80797cf Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Wed, 20 Nov 2024 14:16:21 +0100 Subject: [PATCH] Move txt from sample to the readme home file Signed-off-by: cmoulliard --- README.md | 9 ++++++++- samples/build-me/README.md | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d46e6bd..89059d7 100644 --- a/README.md +++ b/README.md @@ -217,8 +217,15 @@ If the build fails for any reason, a `BuildpackException` will be thrown, this i ### Maven exec:java To play with the Java Buildpack client & DSL, use the following simple java project: [samples/build-me](samples/build-me) + +To use it, just configure the following env var pointing to a project to be built as a container image + +```bash +export PROJECT_PATH= +export IMAGE_REF= // quay.io// or +``` +and execute this command in a terminal: ```bash -export PROJECT_PATH="$HOME/path_to/java-buildpack-client/samples/hello-quarkus" mvn compile exec:java ``` diff --git a/samples/build-me/README.md b/samples/build-me/README.md index 7ca766a..4f91301 100644 --- a/samples/build-me/README.md +++ b/samples/build-me/README.md @@ -1,6 +1,6 @@ # Buildpack Builder config example -Example of a java project able to build a Quarkus, spring Boot, ... project +Example of a java project able to build a Quarkus, Spring Boot, ... project using the DSL `BuildConfig.builder()` To use it, just configure the following env var pointing to a project to be built as a container image