Docker
  • Introduction
  • Docker
    • Introduction
    • Install Docker
    • Detener imagenes
    • Ejecutar el bash de una imagen
    • Detener contenedor docker-compose actual
    • Remover imagenes
    • Instalar una imagen
    • Comandos docker
    • Ejecutar el contenedor
    • Registrarse en Docker Hub
    • Ver listado de contenedores
    • Subir imagen a DockerHub
    • Configurar los paquetes a instalar
    • Crear una imagen con Java Wildfly
    • Instalar MariaDB
    • NetBeans Docker maven
  • Java en Docker
    • Oracle JDK
    • OpenJDK
  • MongoDB CON DOCKER COMPOSE
    • Instalar Studio 3t
    • Crear directorio en docker
    • Copiar archivos de docker al disco
    • Ejecutar mongoShell
    • Backup/Restore en Carpetas
    • Backup en un zip
    • Restore archivo .gz
    • MongoDB Compass
  • MySQL Con Docker-Compose
  • NetBeans con MySQL Docker
  • NetBeans con MySQL Server install
  • PayaraMicro con Docker
    • Payara Micro con Bases datos
  • Payara Server Pool de Conexiones MySQL
  • MySQL BackupRestore
  • PayaraServer docker Compose
  • PayaraServer docker pool conexion
  • Jakarta EE con DockerCompose
  • OracleDB docker
    • Error de Password Expirado
  • WebLogic Docker compose
  • Ant
    • Instalar
  • Postfix
    • Instalar Postfix
  • Nano
  • Curl
  • Descargar Wildfly
  • EJBCA
    • Guia de instalacion
    • Requisitos ejbca
    • Configurar MySQL
    • User pki
    • Driver MySQL
    • OpenSSH
    • Java
    • Descargar EJBCA
    • Wildfly 10
    • Activar archivos de Configuracion
    • Ejecutar Wildfly
  • GlassFish
  • Jig Google
  • SQL Server
    • Cliente
    • Conectarse con Java
    • NetBeans con SQLServer docker
  • Restaurar bases de datos
  • Jenkins
  • Kubernetes
    • Payara con Kubernetes y Vuejs
Powered by GitBook
On this page

Was this helpful?

Jig Google

PreviousGlassFishNextSQL Server

Last updated 6 years ago

Was this helpful?

Automatiza las aplicaciones Java

Guia:

Agregar

 <build>
        <finalName>${project.artifactId}</finalName> 
        <plugins>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>0.9.0</version>
                <configuration>
                    <to>
                        <image>mycompany/${project.artifactId}:${project.version}</image>
                    </to>
                </configuration>
            </plugin>
        </plugins>
    </build>

Arrancar docker

Construir la imagen

mvn compile jib:build

Construir el demonio en docker

mvn compile jib:dockerBuild

Archivo pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>mydoc</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <dependencies>
        <dependency>
            <groupId>jfree</groupId>
            <artifactId>jcommon</artifactId>
            <version>1.0.15</version>
        </dependency>
    </dependencies> 
    <build>
        <finalName>${project.artifactId}</finalName> 
        <plugins>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>0.9.0</version>
                <configuration>
                    <to>
                        <image>mycompany/${project.artifactId}:${project.version}</image>
                    </to>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
</project>
https://jaxenter.com/jib-java-containerization-146647.html