Publier des artefacts ESB dans un registre Docker local - 7.2

Talend Software Development Life Cycle - Guide de bonnes pratiques

Version
7.2
Language
Français (France)
Product
Talend Big Data
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Module
Studio Talend
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend JobServer
Content
Administration et monitoring
Création et développement
Déploiement

Procédure

  1. Ouvrez une invite de commande ou un terminal et exécutez la commande suivante afin de construire et installer les artefacts dans un registre Docker local.
    $ mvn -Dgeneration.type=local -Dproduct.path=<STUDIO_HOME> -s <STUDIO_HOME>/configuration/maven_user_settings.xml \
    						install -Pdocker \
    						-f <GIT_PROJECT_PATH>/<STUDIO_PROJECT>/poms \
    						-pl jobs/process/demorest_0.1,jobs/routes/demorestroute_0.1,jobs/routes/directsedademo_0.1
    						
    						[INFO] Scanning for projects...
    						...
    						[INFO] ------------------------------------------------------------------------
    						[INFO] Reactor Build Order:
    						[INFO]
    						[INFO] <STUDIO_PROJECT> DemoREST-0.1.0 (0.1,Jobs) Microservice Jar           [jar]
    						[INFO] <STUDIO_PROJECT> DirectSEDADemo-0.1.0 (0.1,Routes) Microservice Jar   [jar]
    						[INFO] <STUDIO_PROJECT> DemoRESTRoute-0.1.0 (0.1,Routes) Microservice Jar    [jar]
    						...
    						[INFO] F8: [<STUDIO_PROJECT>/demorest:latest]: Created docker-build.tar in 6 seconds
    						[INFO] F8: [<STUDIO_PROJECT>/demorest:latest]: Built image sha256:755fc
    						[INFO] F8: [<STUDIO_PROJECT>/demorest:latest]: Tag with 0.1.0
    						...
    						[INFO] F8: [<STUDIO_PROJECT>/directsedademo:latest]: Created docker-build.tar in 5 seconds
    						[INFO] F8: [<STUDIO_PROJECT>/directsedademo:latest]: Built image sha256:cd71e
    						[INFO] F8: [<STUDIO_PROJECT>/directsedademo:latest]: Tag with 0.1.0
    						...
    						[INFO] F8: [<STUDIO_PROJECT>/demorestroute:latest]: Created docker-build.tar in 6 seconds
    						[INFO] F8: [<STUDIO_PROJECT>/demorestroute:latest]: Built image sha256:3a1a0
    						[INFO] F8: [<STUDIO_PROJECT>/demorestroute:latest]: Tag with 0.1.0
    						...
    						[INFO] ------------------------------------------------------------------------
    						[INFO] Reactor Summary for <STUDIO_PROJECT> DemoREST-0.1.0 (0.1,Jobs) Microservice Jar 0.1.0:
    						[INFO]
    						[INFO] <STUDIO_PROJECT> DemoREST-0.1.0 (0.1,Jobs) Microservice Jar SUCCESS [02:11 min]
    						[INFO] <STUDIO_PROJECT> DirectSEDADemo-0.1.0 (0.1,Routes) Microservice Jar SUCCESS [ 24.326 s]
    						[INFO] <STUDIO_PROJECT> DemoRESTRoute-0.1.0 (0.1,Routes) Microservice Jar SUCCESS [ 28.643 s]
    						[INFO] ------------------------------------------------------------------------
    						[INFO] BUILD SUCCESS
    						[INFO] ------------------------------------------------------------------------
    						[INFO] Total time:  03:08 min
    						[INFO] Finished at: 2019-08-12T10:18:46+02:00
    						[INFO] ------------------------------------------------------------------------
    • <STUDIO_HOME> correspond au chemin d'installation de Studio Talend
    • <GIT_PROJECT_PATH> correspond au chemin du projet ou au résultat du clone Git
    • <STUDIO_PROJECT> correspond au nom du projet Studio Talend, identique au nom du projet Git. Le nom des projets doit comporter uniquement des majuscules.
  2. Exécutez la commande docker images afin de lister les images de votre registre Docker local et vérifiez que le Push des nouvelles images a bien été effectué.

    Exemple

    $ docker images
    						REPOSITORY                                                                    TAG                 IMAGE ID            CREATED             SIZE
    						<STUDIO_PROJECT>/demorestroute                                                0.1.0               3a1a006250c7        1 minute ago        265MB
    						<STUDIO_PROJECT>/demorestroute                                                latest              3a1a006250c7        1 minute ago        265MB
    						<STUDIO_PROJECT>/directsedademo                                               0.1.0               cd71e28cca55        1 minute ago        243MB
    						<STUDIO_PROJECT>/directsedademo                                               latest              cd71e28cca55        1 minute ago        243MB
    						<STUDIO_PROJECT>/demorest                                                     0.1.0               755fc677f6ef        1 minute ago        307MB
    						<STUDIO_PROJECT>/demorest                                                     latest              755fc677f6ef        1 minute ago        307MB