Entradas

Mostrando entradas de junio, 2021

Create a docker image from a spring boot project

In order to create a docker image from a spring boot project, First, your pom.xml has to be configured. <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!-- Cofiguration for creating a docker image --> <image> <name>chamow01/${project.artifactId}</name> </image> </configuration> </plugin> </plugins> </build> Then, the next maven command needs to be applied, so spring boot uses paketo-buildpacks in order to create a docker image based on you Java code mvn spring-boot:build-image ... [INFO] > Running creator [INFO] [creator] ===> DETECTING [INFO] [creator] 6 of 24 buildpacks participating [INFO] [creator] paketo-buildpacks/ca-certificates 3.2.0 [INFO] [creator] paketo-buildpacks/bellsoft-liberica 9.3.2 [INFO]

Configuración de JBoss para modo debug

Imagen
Para que una instancia de Jboss puede ser accedida en modo debug se debe realizar la siguiente configuración (para este ejemplo en el archivo: host-slave.xml):  Entidad Padre <server name="MI-INSTANCIA-EN-DEBUG" group="MI-INSTANCIA-EN-DEBUGL_GR" auto-start="true"> <jvm name="default"> <jvm-options> <option value="-Xrunjdwp:transport=dt_socket,address=10899,server=y,suspend=n"/> </jvm-options> </jvm> <socket-bindings socket-binding-group="standard-sockets" port-offset="19900"/> </server> Configuración en Eclipse Para poder utilizar desde eclipse el modo debug, se debe realizar un Debug Configuration de tipo Remote Java Application con el puerto configurado previamente, en este ejemplo 10899: Fuentes:  Experiencia del autor.