Entradas

Mostrando entradas de octubre, 2019

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]

Error al activar módulo mod_ssl.so en Apache

Si activar el módulo mod_ssl.so en Apache y reiniciar el servidor se obtiene el siguiente mensaje de error: " mod_ssl.so into server: %1 is not a valid Win32 application. " Se tiene la siguiente solución: Descargar la versión compatible de OpenSSL (Win32), en mi caso funcionó con: Win32 OpenSSL v1.0.2t Light Al momento de instalar OpenSSL, activar la casilla para copiar archivos en el directorio de Windows. Reiniciar Apache Fuentes: https://stackoverflow.com/questions/40017498/cannot-load-modules-mod-ssl-so-into-server http://slproweb.com/products/Win32OpenSSL.html

Crear una instancia de apache server como servicio

Se debe utilizar el siguiente comando, indicando el path del archivo httpd.conf del nuevo servidor apache.   httpd.exe -k install -n "New Apache" -f "C:/path/to/httpd.conf" Donde: "New Apache", es el nombre del servicio Windows a ser creado. Con el anterior comando se crea en servicio y muestra errores en el caso de haberlos; Una ver correjidos los errores se procede a ejecutar el siguiente comando, para terminar la configuración: httpd.exe -k config -n "New Apache" -f "C:\path\to\httpd.conf En el caso de que se quiera eliminar el servicio windows creado, ejecutar el siguiente comando: sc delete <Nombre del servicio> Ej. sc delete "New Apache" Fuentes: https://stackoverflow.com/questions/16959839/how-we-can-run-two-instance-of-apache-http-server-on-same-machine-windows-7 http://geekswithblogs.net/shahedul/archive/2006/10/13/93984.aspx