Entradas

Mostrando entradas de noviembre, 2018

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]

Plugins IONIC

1. Geolocalización Url : https://ionicframework.com/docs/native/geolocation/ Uso : ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you" npm install --save @ionic-native/geolocation 2. Cámara Url :   https://ionicframework.com/docs/native/camera/ Uso : ionic cordova plugin add cordova-plugin-camera npm install --save @ionic-native/camera 3. Vibración Url :   https://ionicframework.com/docs/native/vibration/ Uso : ionic cordova plugin add cordova-plugin-vibration npm install --save @ionic-native/vibration