Thiago dos Santos Hora 47249aa1ff [BAEL-4747] Add read me and utils scripts (#11242)
* [BAEL-4747] Create quarkus and spring boot projects

* [BAEL-4747] Add quarkus implementation and fixing native image plugins setup

* Fixing build config

* [BAEL-4747] Add read me and utils scripts
2021-09-23 11:07:26 +02:00

13 lines
572 B
Bash
Executable File

#!/bin/bash
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
./mvnw quarkus:add-extension -Dextensions=container-image-docker
if [ "$1" = "native" ]; then
./mvnw package -Pnative -Dquarkus.native.container-build=true -f $SCRIPTPATH/pom.xml &&
docker build -f $SCRIPTPATH/src/main/docker/Dockerfile.native -t quarkus-project:0.1-SNAPSHOT $SCRIPTPATH/.
else
./mvnw package -Dquarkus.container-build=true -f $SCRIPTPATH/pom.xml &&
docker build -f $SCRIPTPATH/src/main/docker/Dockerfile.jvm -t quarkus-project:0.1-SNAPSHOT $SCRIPTPATH/.
fi