[{"data":1,"prerenderedAt":3412},["ShallowReactive",2],{"/blog/use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project":3,"navigation-en-us":2629,"banner-en-us":3056,"footer-en-us":3066,"blog-post-authors-en-us-Cesar Saavedra":3310,"blog-related-posts-en-us-use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project":3325,"blog-promotions-en-us":3350,"next-steps-en-us":3402},{"id":4,"title":5,"authors":6,"body":8,"category":2604,"date":2605,"description":2606,"extension":2607,"externalUrl":2608,"faq":2608,"featured":2609,"heroImage":2610,"meta":2611,"navigation":2609,"path":2612,"seo":2613,"slug":2618,"stem":2619,"tags":2620,"template":2627,"updatedDate":2608,"__hash__":2628},"blogPosts/en-us/blog/use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project.md","Use GitLab Duo to build and deploy a simple Quarkus-native project",[7],"Cesar Saavedra",{"type":9,"value":10,"toc":2592},"minimark",[11,34,39,53,57,60,90,99,102,126,133,137,144,149,157,164,171,181,191,198,204,209,215,225,232,238,246,1688,1693,1700,1706,1716,1721,1727,1731,1737,1742,1749,1755,1766,1772,1775,1779,1782,1811,1824,1827,1831,1834,1839,1861,1867,1870,1875,1880,1887,1893,1896,1901,1988,2006,2012,2017,2031,2038,2044,2049,2070,2076,2081,2087,2093,2100,2103,2113,2117,2120,2125,2132,2138,2141,2190,2197,2203,2215,2232,2241,2248,2254,2257,2263,2286,2293,2299,2302,2314,2320,2324,2333,2339,2346,2353,2359,2362,2412,2422,2426,2432,2438,2451,2457,2467,2479,2485,2488,2494,2500,2506,2512,2516,2529,2536,2542,2546,2553,2556,2569,2577,2588],[12,13,14,15,21,22,27,28,33],"p",{},"In ",[16,17,20],"a",{"href":18,"rel":19},"https://about.gitlab.com/blog/how-to-automate-software-delivery-using-quarkus-and-gitlab/",[],"“How to automate software delivery using Quarkus and GitLab,”"," you learned how to develop and deploy a simple Quarkus-JVM application to a Kubernetes cluster using ",[16,23,26],{"href":24,"rel":25},"https://docs.gitlab.com/topics/autodevops/",[],"GitLab Auto DevOps",". Now, you'll learn how to use Quarkus-native to compile a Java application to machine code and deploy it to a Kubernetes cluster using a CI/CD pipeline. Follow our journey from development to deployment leveraging ",[16,29,32],{"href":30,"rel":31},"https://about.gitlab.com/gitlab-duo-agent-platform/",[],"GitLab Duo"," as our AI companion, including the specific prompts we used.",[35,36,38],"h2",{"id":37},"what-is-quarkus","What is Quarkus?",[12,40,41,46,47,52],{},[16,42,45],{"href":43,"rel":44},"https://quarkus.io/",[],"Quarkus",", also known as the Supersonic Subatomic Java, is an open source, Kubernetes-native Java stack tailored to OpenJDK HotSpot and GraalVM. The Quarkus project recently moved to the ",[16,48,51],{"href":49,"rel":50},"https://www.commonhaus.org/",[],"Commonhaus Foundation",", a nonprofit organization dedicated to the sustainability of open source libraries and frameworks that provides a balanced approach to governance and support.",[35,54,56],{"id":55},"prerequisites","Prerequisites",[12,58,59],{},"This tutorial assumes:",[61,62,63,67,75,78,87],"ul",{},[64,65,66],"li",{},"You have a running Kubernetes cluster, e.g. GKE.",[64,68,69,70,74],{},"You have access to the Kubernetes cluster from your local laptop via the ",[71,72,73],"code",{},"kubectl"," command.",[64,76,77],{},"The cluster is connected to your GitLab project.",[64,79,80,81,86],{},"You have ",[16,82,85],{"href":83,"rel":84},"https://maven.apache.org/",[],"Maven (Version 3.9.6 or later)"," installed on your local laptop.",[64,88,89],{},"You have Visual Studio Code installed on your local laptop.",[12,91,92,93,98],{},"If you’d like to set up a Kubernetes cluster connected to your GitLab project, you can follow the instructions in this ",[16,94,97],{"href":95,"rel":96},"https://about.gitlab.com/blog/eliminate-risk-with-feature-flags-tutorial/",[],"tutorial",", up to but not including the “Creating an instance of MySQL database in your cluster via Flux” section (you do not need a database for this tutorial).",[12,100,101],{},"You will also need to install an nginx ingress in your Kubernetes cluster. Here are two ways to do this:",[103,104,105,118],"ol",{},[64,106,107,108,113,114,117],{},"You can follow the instructions in ",[16,109,112],{"href":110,"rel":111},"https://about.gitlab.com/blog/eliminate-risk-with-feature-flags-tutorial/#creating-and-importing-projects",[],"“Creating and importing projects”",", up to the creation of the variable ",[71,115,116],{},"KUBE_INGRESS_BASE_DOMAIN",".",[64,119,120,121,117],{},"Or, just create an ingress in your Kubernetes cluster by following the instructions in our ",[16,122,125],{"href":123,"rel":124},"https://docs.gitlab.com/topics/autodevops/cloud_deployments/auto_devops_with_gke/#install-ingress",[],"Auto DevOps with GKE documentation",[12,127,128,132],{},[129,130,131],"strong",{},"NOTE:"," For this article, we used the first method above to install an ingress and cert-manager in the Kubernetes cluster.",[35,134,136],{"id":135},"creating-necessary-project-files-using-gitlab-duo-chat","Creating necessary project files using GitLab Duo Chat",[12,138,139,140,143],{},"We started our endeavor from VS Code and an empty project called ",[71,141,142],{},"quarkus-native",", which we had previously created in GitLab and had already cloned to our local laptop.",[103,145,146],{},[64,147,148],{},"We opened GitLab Duo Chat, within VS Code, and entered the following prompt:",[12,150,151],{},[129,152,153],{},[154,155,156],"em",{},"Create a “Hello World” Quarkus application that can be natively compiled",[12,158,159],{},[160,161],"img",{"alt":162,"src":163},"hello-world-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/hello-world-prompt.png",[12,165,166,167,170],{},"Chat replied with the prerequisites and process of what to do to create a simple “Hello World” Quarkus application. At this point, we were after the generated body of the class ",[71,168,169],{},"HelloResource.java",":",[172,173,179],"pre",{"className":174,"code":176,"language":177,"meta":178},[175],"language-text","package org.acme;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.core.MediaType;\n\n@Path(\"/hello\")\npublic class HelloResource {\n\n    @GET\n    @Produces(MediaType.TEXT_PLAIN)\n    public String hello() {\n        return \"Hello World\";\n    }\n}\n","text","",[71,180,176],{"__ignoreMap":178},[103,182,184],{"start":183},2,[64,185,186,187,190],{},"We knew that for Quarkus we needed a special Dockerfile, named ",[71,188,189],{},"Dockerfile.native",", as part of the creation of the image for the application executable. We then entered the following prompt in Chat:",[12,192,193],{},[129,194,195],{},[154,196,197],{},"Create the Dockerfile.native file for the sample application above",[12,199,200],{},[160,201],{"alt":202,"src":203},"create-dockerfile-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675941/Blog/Content%20Images/create-dockerfile-prompt.png",[12,205,206,207,170],{},"Chat replied with a very thorough answer about this file, its contents, and the containerization process. At this point, we were just after the generated body of the file ",[71,208,189],{},[172,210,213],{"className":211,"code":212,"language":177,"meta":178},[175],"####\n# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode\n####\nFROM registry.access.redhat.com/ubi8/ubi-minimal:8.6\nWORKDIR /work/\nRUN chown 1001 /work \\\n    && chmod \"g+rwX\" /work \\\n    && chown 1001:root /work\nCOPY --chown=1001:root target/*-runner /work/application\n\nEXPOSE 8080\nUSER 1001\n\nCMD [\"./application\", \"-Dquarkus.http.host=0.0.0.0\"]\n",[71,214,212],{"__ignoreMap":178},[103,216,218],{"start":217},3,[64,219,220,221,224],{},"Next, we asked Chat to generate the ",[71,222,223],{},"pom.xml"," for this application by entering the following prompt:",[12,226,227],{},[129,228,229],{},[154,230,231],{},"Create the pom.xml file for the sample application above",[12,233,234],{},[160,235],{"alt":236,"src":237},"create-pom-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/create-pom-prompt.png",[12,239,240,241,243,244,170],{},"Chat provided the content of the ",[71,242,223],{}," file, an explanation of its contents, and how to use it. At this point, we were after the generated body of the file ",[71,245,223],{},[172,247,251],{"className":248,"code":249,"language":250,"meta":178,"style":178},"language-xml shiki shiki-themes github-light","\u003C?xml version=\"1.0\"?>\n\u003Cproject xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\" xmlns=\"http://maven.apache.org/POM/4.0.0\"\n    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n  \u003CmodelVersion>4.0.0\u003C/modelVersion>\n  \u003CgroupId>org.acme\u003C/groupId>\n  \u003CartifactId>hello-world-quarkus\u003C/artifactId>\n  \u003Cversion>1.0.0-SNAPSHOT\u003C/version>\n  \u003Cproperties>\n    \u003Ccompiler-plugin.version>3.10.1\u003C/compiler-plugin.version>\n    \u003Cmaven.compiler.release>11\u003C/maven.compiler.release>\n    \u003Cproject.build.sourceEncoding>UTF-8\u003C/project.build.sourceEncoding>\n    \u003Cproject.reporting.outputEncoding>UTF-8\u003C/project.reporting.outputEncoding>\n    \u003Cquarkus.platform.artifact-id>quarkus-bom\u003C/quarkus.platform.artifact-id>\n    \u003Cquarkus.platform.group-id>io.quarkus.platform\u003C/quarkus.platform.group-id>\n    \u003Cquarkus.platform.version>2.16.5.Final\u003C/quarkus.platform.version>\n    \u003CskipITs>true\u003C/skipITs>\n    \u003Csurefire-plugin.version>3.0.0-M7\u003C/surefire-plugin.version>\n  \u003C/properties>\n  \u003CdependencyManagement>\n    \u003Cdependencies>\n      \u003Cdependency>\n        \u003CgroupId>${quarkus.platform.group-id}\u003C/groupId>\n        \u003CartifactId>${quarkus.platform.artifact-id}\u003C/artifactId>\n        \u003Cversion>${quarkus.platform.version}\u003C/version>\n        \u003Ctype>pom\u003C/type>\n        \u003Cscope>import\u003C/scope>\n      \u003C/dependency>\n    \u003C/dependencies>\n  \u003C/dependencyManagement>\n  \u003Cdependencies>\n    \u003Cdependency>\n      \u003CgroupId>io.quarkus\u003C/groupId>\n      \u003CartifactId>quarkus-arc\u003C/artifactId>\n    \u003C/dependency>\n    \u003Cdependency>\n      \u003CgroupId>io.quarkus\u003C/groupId>\n      \u003CartifactId>quarkus-resteasy\u003C/artifactId>\n    \u003C/dependency>\n    \u003Cdependency>\n      \u003CgroupId>io.quarkus\u003C/groupId>\n      \u003CartifactId>quarkus-junit5\u003C/artifactId>\n      \u003Cscope>test\u003C/scope>\n    \u003C/dependency>\n    \u003Cdependency>\n      \u003CgroupId>io.rest-assured\u003C/groupId>\n      \u003CartifactId>rest-assured\u003C/artifactId>\n      \u003Cscope>test\u003C/scope>\n    \u003C/dependency>\n  \u003C/dependencies>\n  \u003Cbuild>\n    \u003Cplugins>\n      \u003Cplugin>\n        \u003CgroupId>${quarkus.platform.group-id}\u003C/groupId>\n        \u003CartifactId>quarkus-maven-plugin\u003C/artifactId>\n        \u003Cversion>${quarkus.platform.version}\u003C/version>\n        \u003Cextensions>true\u003C/extensions>\n        \u003Cexecutions>\n          \u003Cexecution>\n            \u003Cgoals>\n              \u003Cgoal>build\u003C/goal>\n              \u003Cgoal>generate-code\u003C/goal>\n              \u003Cgoal>generate-code-tests\u003C/goal>\n            \u003C/goals>\n          \u003C/execution>\n        \u003C/executions>\n      \u003C/plugin>\n      \u003Cplugin>\n        \u003CartifactId>maven-compiler-plugin\u003C/artifactId>\n        \u003Cversion>${compiler-plugin.version}\u003C/version>\n        \u003Cconfiguration>\n          \u003CcompilerArgs>\n            \u003Carg>-parameters\u003C/arg>\n          \u003C/compilerArgs>\n        \u003C/configuration>\n      \u003C/plugin>\n      \u003Cplugin>\n        \u003CartifactId>maven-surefire-plugin\u003C/artifactId>\n        \u003Cversion>${surefire-plugin.version}\u003C/version>\n        \u003Cconfiguration>\n          \u003CsystemPropertyVariables>\n            \u003Cjava.util.logging.manager>org.jboss.logmanager.LogManager\u003C/java.util.logging.manager>\n            \u003Cmaven.home>${maven.home}\u003C/maven.home>\n          \u003C/systemPropertyVariables>\n        \u003C/configuration>\n      \u003C/plugin>\n      \u003Cplugin>\n        \u003CartifactId>maven-failsafe-plugin\u003C/artifactId>\n        \u003Cversion>${surefire-plugin.version}\u003C/version>\n        \u003Cexecutions>\n          \u003Cexecution>\n            \u003Cgoals>\n              \u003Cgoal>integration-test\u003C/goal>\n              \u003Cgoal>verify\u003C/goal>\n            \u003C/goals>\n            \u003Cconfiguration>\n              \u003CsystemPropertyVariables>\n                \u003Cnative.image.path>${project.build.directory}/${project.build.finalName}-runner\u003C/native.image.path>\n                \u003Cjava.util.logging.manager>org.jboss.logmanager.LogManager\u003C/java.util.logging.manager>\n                \u003Cmaven.home>${maven.home}\u003C/maven.home>\n              \u003C/systemPropertyVariables>\n            \u003C/configuration>\n          \u003C/execution>\n        \u003C/executions>\n      \u003C/plugin>\n    \u003C/plugins>\n  \u003C/build>\n  \u003Cprofiles>\n    \u003Cprofile>\n      \u003Cid>native\u003C/id>\n      \u003Cactivation>\n        \u003Cproperty>\n          \u003Cname>native\u003C/name>\n        \u003C/property>\n      \u003C/activation>\n      \u003Cproperties>\n        \u003CskipITs>false\u003C/skipITs>\n        \u003Cquarkus.package.type>native\u003C/quarkus.package.type>\n      \u003C/properties>\n    \u003C/profile>\n  \u003C/profiles>\n\u003C/project>\n","xml",[71,252,253,279,303,316,332,347,362,377,387,403,418,433,447,462,477,492,507,522,532,542,552,563,578,592,606,621,636,646,656,665,674,683,697,711,720,729,742,756,765,774,787,801,815,824,833,847,861,874,883,892,902,912,922,935,949,962,976,986,997,1008,1024,1038,1052,1062,1072,1082,1091,1100,1114,1128,1138,1148,1163,1172,1181,1190,1199,1213,1227,1236,1246,1261,1276,1285,1294,1303,1312,1326,1339,1348,1357,1366,1380,1394,1403,1412,1421,1437,1450,1463,1473,1482,1491,1500,1509,1518,1527,1537,1547,1562,1572,1582,1596,1605,1614,1623,1637,1651,1660,1669,1678],{"__ignoreMap":178},[254,255,258,262,265,269,272,276],"span",{"class":256,"line":257},"line",1,[254,259,261],{"class":260},"sgsFI","\u003C?",[254,263,250],{"class":264},"shJU0",[254,266,268],{"class":267},"s7eDp"," version",[254,270,271],{"class":260},"=",[254,273,275],{"class":274},"sYBdl","\"1.0\"",[254,277,278],{"class":260},"?>\n",[254,280,281,284,287,290,292,295,298,300],{"class":256,"line":183},[254,282,283],{"class":260},"\u003C",[254,285,286],{"class":264},"project",[254,288,289],{"class":267}," xsi:schemaLocation",[254,291,271],{"class":260},[254,293,294],{"class":274},"\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\"",[254,296,297],{"class":267}," xmlns",[254,299,271],{"class":260},[254,301,302],{"class":274},"\"http://maven.apache.org/POM/4.0.0\"\n",[254,304,305,308,310,313],{"class":256,"line":217},[254,306,307],{"class":267},"    xmlns:xsi",[254,309,271],{"class":260},[254,311,312],{"class":274},"\"http://www.w3.org/2001/XMLSchema-instance\"",[254,314,315],{"class":260},">\n",[254,317,319,322,325,328,330],{"class":256,"line":318},4,[254,320,321],{"class":260},"  \u003C",[254,323,324],{"class":264},"modelVersion",[254,326,327],{"class":260},">4.0.0\u003C/",[254,329,324],{"class":264},[254,331,315],{"class":260},[254,333,335,337,340,343,345],{"class":256,"line":334},5,[254,336,321],{"class":260},[254,338,339],{"class":264},"groupId",[254,341,342],{"class":260},">org.acme\u003C/",[254,344,339],{"class":264},[254,346,315],{"class":260},[254,348,350,352,355,358,360],{"class":256,"line":349},6,[254,351,321],{"class":260},[254,353,354],{"class":264},"artifactId",[254,356,357],{"class":260},">hello-world-quarkus\u003C/",[254,359,354],{"class":264},[254,361,315],{"class":260},[254,363,365,367,370,373,375],{"class":256,"line":364},7,[254,366,321],{"class":260},[254,368,369],{"class":264},"version",[254,371,372],{"class":260},">1.0.0-SNAPSHOT\u003C/",[254,374,369],{"class":264},[254,376,315],{"class":260},[254,378,380,382,385],{"class":256,"line":379},8,[254,381,321],{"class":260},[254,383,384],{"class":264},"properties",[254,386,315],{"class":260},[254,388,390,393,396,399,401],{"class":256,"line":389},9,[254,391,392],{"class":260},"    \u003C",[254,394,395],{"class":264},"compiler-plugin.version",[254,397,398],{"class":260},">3.10.1\u003C/",[254,400,395],{"class":264},[254,402,315],{"class":260},[254,404,406,408,411,414,416],{"class":256,"line":405},10,[254,407,392],{"class":260},[254,409,410],{"class":264},"maven.compiler.release",[254,412,413],{"class":260},">11\u003C/",[254,415,410],{"class":264},[254,417,315],{"class":260},[254,419,421,423,426,429,431],{"class":256,"line":420},11,[254,422,392],{"class":260},[254,424,425],{"class":264},"project.build.sourceEncoding",[254,427,428],{"class":260},">UTF-8\u003C/",[254,430,425],{"class":264},[254,432,315],{"class":260},[254,434,436,438,441,443,445],{"class":256,"line":435},12,[254,437,392],{"class":260},[254,439,440],{"class":264},"project.reporting.outputEncoding",[254,442,428],{"class":260},[254,444,440],{"class":264},[254,446,315],{"class":260},[254,448,450,452,455,458,460],{"class":256,"line":449},13,[254,451,392],{"class":260},[254,453,454],{"class":264},"quarkus.platform.artifact-id",[254,456,457],{"class":260},">quarkus-bom\u003C/",[254,459,454],{"class":264},[254,461,315],{"class":260},[254,463,465,467,470,473,475],{"class":256,"line":464},14,[254,466,392],{"class":260},[254,468,469],{"class":264},"quarkus.platform.group-id",[254,471,472],{"class":260},">io.quarkus.platform\u003C/",[254,474,469],{"class":264},[254,476,315],{"class":260},[254,478,480,482,485,488,490],{"class":256,"line":479},15,[254,481,392],{"class":260},[254,483,484],{"class":264},"quarkus.platform.version",[254,486,487],{"class":260},">2.16.5.Final\u003C/",[254,489,484],{"class":264},[254,491,315],{"class":260},[254,493,495,497,500,503,505],{"class":256,"line":494},16,[254,496,392],{"class":260},[254,498,499],{"class":264},"skipITs",[254,501,502],{"class":260},">true\u003C/",[254,504,499],{"class":264},[254,506,315],{"class":260},[254,508,510,512,515,518,520],{"class":256,"line":509},17,[254,511,392],{"class":260},[254,513,514],{"class":264},"surefire-plugin.version",[254,516,517],{"class":260},">3.0.0-M7\u003C/",[254,519,514],{"class":264},[254,521,315],{"class":260},[254,523,525,528,530],{"class":256,"line":524},18,[254,526,527],{"class":260},"  \u003C/",[254,529,384],{"class":264},[254,531,315],{"class":260},[254,533,535,537,540],{"class":256,"line":534},19,[254,536,321],{"class":260},[254,538,539],{"class":264},"dependencyManagement",[254,541,315],{"class":260},[254,543,545,547,550],{"class":256,"line":544},20,[254,546,392],{"class":260},[254,548,549],{"class":264},"dependencies",[254,551,315],{"class":260},[254,553,555,558,561],{"class":256,"line":554},21,[254,556,557],{"class":260},"      \u003C",[254,559,560],{"class":264},"dependency",[254,562,315],{"class":260},[254,564,566,569,571,574,576],{"class":256,"line":565},22,[254,567,568],{"class":260},"        \u003C",[254,570,339],{"class":264},[254,572,573],{"class":260},">${quarkus.platform.group-id}\u003C/",[254,575,339],{"class":264},[254,577,315],{"class":260},[254,579,581,583,585,588,590],{"class":256,"line":580},23,[254,582,568],{"class":260},[254,584,354],{"class":264},[254,586,587],{"class":260},">${quarkus.platform.artifact-id}\u003C/",[254,589,354],{"class":264},[254,591,315],{"class":260},[254,593,595,597,599,602,604],{"class":256,"line":594},24,[254,596,568],{"class":260},[254,598,369],{"class":264},[254,600,601],{"class":260},">${quarkus.platform.version}\u003C/",[254,603,369],{"class":264},[254,605,315],{"class":260},[254,607,609,611,614,617,619],{"class":256,"line":608},25,[254,610,568],{"class":260},[254,612,613],{"class":264},"type",[254,615,616],{"class":260},">pom\u003C/",[254,618,613],{"class":264},[254,620,315],{"class":260},[254,622,624,626,629,632,634],{"class":256,"line":623},26,[254,625,568],{"class":260},[254,627,628],{"class":264},"scope",[254,630,631],{"class":260},">import\u003C/",[254,633,628],{"class":264},[254,635,315],{"class":260},[254,637,639,642,644],{"class":256,"line":638},27,[254,640,641],{"class":260},"      \u003C/",[254,643,560],{"class":264},[254,645,315],{"class":260},[254,647,649,652,654],{"class":256,"line":648},28,[254,650,651],{"class":260},"    \u003C/",[254,653,549],{"class":264},[254,655,315],{"class":260},[254,657,659,661,663],{"class":256,"line":658},29,[254,660,527],{"class":260},[254,662,539],{"class":264},[254,664,315],{"class":260},[254,666,668,670,672],{"class":256,"line":667},30,[254,669,321],{"class":260},[254,671,549],{"class":264},[254,673,315],{"class":260},[254,675,677,679,681],{"class":256,"line":676},31,[254,678,392],{"class":260},[254,680,560],{"class":264},[254,682,315],{"class":260},[254,684,686,688,690,693,695],{"class":256,"line":685},32,[254,687,557],{"class":260},[254,689,339],{"class":264},[254,691,692],{"class":260},">io.quarkus\u003C/",[254,694,339],{"class":264},[254,696,315],{"class":260},[254,698,700,702,704,707,709],{"class":256,"line":699},33,[254,701,557],{"class":260},[254,703,354],{"class":264},[254,705,706],{"class":260},">quarkus-arc\u003C/",[254,708,354],{"class":264},[254,710,315],{"class":260},[254,712,714,716,718],{"class":256,"line":713},34,[254,715,651],{"class":260},[254,717,560],{"class":264},[254,719,315],{"class":260},[254,721,723,725,727],{"class":256,"line":722},35,[254,724,392],{"class":260},[254,726,560],{"class":264},[254,728,315],{"class":260},[254,730,732,734,736,738,740],{"class":256,"line":731},36,[254,733,557],{"class":260},[254,735,339],{"class":264},[254,737,692],{"class":260},[254,739,339],{"class":264},[254,741,315],{"class":260},[254,743,745,747,749,752,754],{"class":256,"line":744},37,[254,746,557],{"class":260},[254,748,354],{"class":264},[254,750,751],{"class":260},">quarkus-resteasy\u003C/",[254,753,354],{"class":264},[254,755,315],{"class":260},[254,757,759,761,763],{"class":256,"line":758},38,[254,760,651],{"class":260},[254,762,560],{"class":264},[254,764,315],{"class":260},[254,766,768,770,772],{"class":256,"line":767},39,[254,769,392],{"class":260},[254,771,560],{"class":264},[254,773,315],{"class":260},[254,775,777,779,781,783,785],{"class":256,"line":776},40,[254,778,557],{"class":260},[254,780,339],{"class":264},[254,782,692],{"class":260},[254,784,339],{"class":264},[254,786,315],{"class":260},[254,788,790,792,794,797,799],{"class":256,"line":789},41,[254,791,557],{"class":260},[254,793,354],{"class":264},[254,795,796],{"class":260},">quarkus-junit5\u003C/",[254,798,354],{"class":264},[254,800,315],{"class":260},[254,802,804,806,808,811,813],{"class":256,"line":803},42,[254,805,557],{"class":260},[254,807,628],{"class":264},[254,809,810],{"class":260},">test\u003C/",[254,812,628],{"class":264},[254,814,315],{"class":260},[254,816,818,820,822],{"class":256,"line":817},43,[254,819,651],{"class":260},[254,821,560],{"class":264},[254,823,315],{"class":260},[254,825,827,829,831],{"class":256,"line":826},44,[254,828,392],{"class":260},[254,830,560],{"class":264},[254,832,315],{"class":260},[254,834,836,838,840,843,845],{"class":256,"line":835},45,[254,837,557],{"class":260},[254,839,339],{"class":264},[254,841,842],{"class":260},">io.rest-assured\u003C/",[254,844,339],{"class":264},[254,846,315],{"class":260},[254,848,850,852,854,857,859],{"class":256,"line":849},46,[254,851,557],{"class":260},[254,853,354],{"class":264},[254,855,856],{"class":260},">rest-assured\u003C/",[254,858,354],{"class":264},[254,860,315],{"class":260},[254,862,864,866,868,870,872],{"class":256,"line":863},47,[254,865,557],{"class":260},[254,867,628],{"class":264},[254,869,810],{"class":260},[254,871,628],{"class":264},[254,873,315],{"class":260},[254,875,877,879,881],{"class":256,"line":876},48,[254,878,651],{"class":260},[254,880,560],{"class":264},[254,882,315],{"class":260},[254,884,886,888,890],{"class":256,"line":885},49,[254,887,527],{"class":260},[254,889,549],{"class":264},[254,891,315],{"class":260},[254,893,895,897,900],{"class":256,"line":894},50,[254,896,321],{"class":260},[254,898,899],{"class":264},"build",[254,901,315],{"class":260},[254,903,905,907,910],{"class":256,"line":904},51,[254,906,392],{"class":260},[254,908,909],{"class":264},"plugins",[254,911,315],{"class":260},[254,913,915,917,920],{"class":256,"line":914},52,[254,916,557],{"class":260},[254,918,919],{"class":264},"plugin",[254,921,315],{"class":260},[254,923,925,927,929,931,933],{"class":256,"line":924},53,[254,926,568],{"class":260},[254,928,339],{"class":264},[254,930,573],{"class":260},[254,932,339],{"class":264},[254,934,315],{"class":260},[254,936,938,940,942,945,947],{"class":256,"line":937},54,[254,939,568],{"class":260},[254,941,354],{"class":264},[254,943,944],{"class":260},">quarkus-maven-plugin\u003C/",[254,946,354],{"class":264},[254,948,315],{"class":260},[254,950,952,954,956,958,960],{"class":256,"line":951},55,[254,953,568],{"class":260},[254,955,369],{"class":264},[254,957,601],{"class":260},[254,959,369],{"class":264},[254,961,315],{"class":260},[254,963,965,967,970,972,974],{"class":256,"line":964},56,[254,966,568],{"class":260},[254,968,969],{"class":264},"extensions",[254,971,502],{"class":260},[254,973,969],{"class":264},[254,975,315],{"class":260},[254,977,979,981,984],{"class":256,"line":978},57,[254,980,568],{"class":260},[254,982,983],{"class":264},"executions",[254,985,315],{"class":260},[254,987,989,992,995],{"class":256,"line":988},58,[254,990,991],{"class":260},"          \u003C",[254,993,994],{"class":264},"execution",[254,996,315],{"class":260},[254,998,1000,1003,1006],{"class":256,"line":999},59,[254,1001,1002],{"class":260},"            \u003C",[254,1004,1005],{"class":264},"goals",[254,1007,315],{"class":260},[254,1009,1011,1014,1017,1020,1022],{"class":256,"line":1010},60,[254,1012,1013],{"class":260},"              \u003C",[254,1015,1016],{"class":264},"goal",[254,1018,1019],{"class":260},">build\u003C/",[254,1021,1016],{"class":264},[254,1023,315],{"class":260},[254,1025,1027,1029,1031,1034,1036],{"class":256,"line":1026},61,[254,1028,1013],{"class":260},[254,1030,1016],{"class":264},[254,1032,1033],{"class":260},">generate-code\u003C/",[254,1035,1016],{"class":264},[254,1037,315],{"class":260},[254,1039,1041,1043,1045,1048,1050],{"class":256,"line":1040},62,[254,1042,1013],{"class":260},[254,1044,1016],{"class":264},[254,1046,1047],{"class":260},">generate-code-tests\u003C/",[254,1049,1016],{"class":264},[254,1051,315],{"class":260},[254,1053,1055,1058,1060],{"class":256,"line":1054},63,[254,1056,1057],{"class":260},"            \u003C/",[254,1059,1005],{"class":264},[254,1061,315],{"class":260},[254,1063,1065,1068,1070],{"class":256,"line":1064},64,[254,1066,1067],{"class":260},"          \u003C/",[254,1069,994],{"class":264},[254,1071,315],{"class":260},[254,1073,1075,1078,1080],{"class":256,"line":1074},65,[254,1076,1077],{"class":260},"        \u003C/",[254,1079,983],{"class":264},[254,1081,315],{"class":260},[254,1083,1085,1087,1089],{"class":256,"line":1084},66,[254,1086,641],{"class":260},[254,1088,919],{"class":264},[254,1090,315],{"class":260},[254,1092,1094,1096,1098],{"class":256,"line":1093},67,[254,1095,557],{"class":260},[254,1097,919],{"class":264},[254,1099,315],{"class":260},[254,1101,1103,1105,1107,1110,1112],{"class":256,"line":1102},68,[254,1104,568],{"class":260},[254,1106,354],{"class":264},[254,1108,1109],{"class":260},">maven-compiler-plugin\u003C/",[254,1111,354],{"class":264},[254,1113,315],{"class":260},[254,1115,1117,1119,1121,1124,1126],{"class":256,"line":1116},69,[254,1118,568],{"class":260},[254,1120,369],{"class":264},[254,1122,1123],{"class":260},">${compiler-plugin.version}\u003C/",[254,1125,369],{"class":264},[254,1127,315],{"class":260},[254,1129,1131,1133,1136],{"class":256,"line":1130},70,[254,1132,568],{"class":260},[254,1134,1135],{"class":264},"configuration",[254,1137,315],{"class":260},[254,1139,1141,1143,1146],{"class":256,"line":1140},71,[254,1142,991],{"class":260},[254,1144,1145],{"class":264},"compilerArgs",[254,1147,315],{"class":260},[254,1149,1151,1153,1156,1159,1161],{"class":256,"line":1150},72,[254,1152,1002],{"class":260},[254,1154,1155],{"class":264},"arg",[254,1157,1158],{"class":260},">-parameters\u003C/",[254,1160,1155],{"class":264},[254,1162,315],{"class":260},[254,1164,1166,1168,1170],{"class":256,"line":1165},73,[254,1167,1067],{"class":260},[254,1169,1145],{"class":264},[254,1171,315],{"class":260},[254,1173,1175,1177,1179],{"class":256,"line":1174},74,[254,1176,1077],{"class":260},[254,1178,1135],{"class":264},[254,1180,315],{"class":260},[254,1182,1184,1186,1188],{"class":256,"line":1183},75,[254,1185,641],{"class":260},[254,1187,919],{"class":264},[254,1189,315],{"class":260},[254,1191,1193,1195,1197],{"class":256,"line":1192},76,[254,1194,557],{"class":260},[254,1196,919],{"class":264},[254,1198,315],{"class":260},[254,1200,1202,1204,1206,1209,1211],{"class":256,"line":1201},77,[254,1203,568],{"class":260},[254,1205,354],{"class":264},[254,1207,1208],{"class":260},">maven-surefire-plugin\u003C/",[254,1210,354],{"class":264},[254,1212,315],{"class":260},[254,1214,1216,1218,1220,1223,1225],{"class":256,"line":1215},78,[254,1217,568],{"class":260},[254,1219,369],{"class":264},[254,1221,1222],{"class":260},">${surefire-plugin.version}\u003C/",[254,1224,369],{"class":264},[254,1226,315],{"class":260},[254,1228,1230,1232,1234],{"class":256,"line":1229},79,[254,1231,568],{"class":260},[254,1233,1135],{"class":264},[254,1235,315],{"class":260},[254,1237,1239,1241,1244],{"class":256,"line":1238},80,[254,1240,991],{"class":260},[254,1242,1243],{"class":264},"systemPropertyVariables",[254,1245,315],{"class":260},[254,1247,1249,1251,1254,1257,1259],{"class":256,"line":1248},81,[254,1250,1002],{"class":260},[254,1252,1253],{"class":264},"java.util.logging.manager",[254,1255,1256],{"class":260},">org.jboss.logmanager.LogManager\u003C/",[254,1258,1253],{"class":264},[254,1260,315],{"class":260},[254,1262,1264,1266,1269,1272,1274],{"class":256,"line":1263},82,[254,1265,1002],{"class":260},[254,1267,1268],{"class":264},"maven.home",[254,1270,1271],{"class":260},">${maven.home}\u003C/",[254,1273,1268],{"class":264},[254,1275,315],{"class":260},[254,1277,1279,1281,1283],{"class":256,"line":1278},83,[254,1280,1067],{"class":260},[254,1282,1243],{"class":264},[254,1284,315],{"class":260},[254,1286,1288,1290,1292],{"class":256,"line":1287},84,[254,1289,1077],{"class":260},[254,1291,1135],{"class":264},[254,1293,315],{"class":260},[254,1295,1297,1299,1301],{"class":256,"line":1296},85,[254,1298,641],{"class":260},[254,1300,919],{"class":264},[254,1302,315],{"class":260},[254,1304,1306,1308,1310],{"class":256,"line":1305},86,[254,1307,557],{"class":260},[254,1309,919],{"class":264},[254,1311,315],{"class":260},[254,1313,1315,1317,1319,1322,1324],{"class":256,"line":1314},87,[254,1316,568],{"class":260},[254,1318,354],{"class":264},[254,1320,1321],{"class":260},">maven-failsafe-plugin\u003C/",[254,1323,354],{"class":264},[254,1325,315],{"class":260},[254,1327,1329,1331,1333,1335,1337],{"class":256,"line":1328},88,[254,1330,568],{"class":260},[254,1332,369],{"class":264},[254,1334,1222],{"class":260},[254,1336,369],{"class":264},[254,1338,315],{"class":260},[254,1340,1342,1344,1346],{"class":256,"line":1341},89,[254,1343,568],{"class":260},[254,1345,983],{"class":264},[254,1347,315],{"class":260},[254,1349,1351,1353,1355],{"class":256,"line":1350},90,[254,1352,991],{"class":260},[254,1354,994],{"class":264},[254,1356,315],{"class":260},[254,1358,1360,1362,1364],{"class":256,"line":1359},91,[254,1361,1002],{"class":260},[254,1363,1005],{"class":264},[254,1365,315],{"class":260},[254,1367,1369,1371,1373,1376,1378],{"class":256,"line":1368},92,[254,1370,1013],{"class":260},[254,1372,1016],{"class":264},[254,1374,1375],{"class":260},">integration-test\u003C/",[254,1377,1016],{"class":264},[254,1379,315],{"class":260},[254,1381,1383,1385,1387,1390,1392],{"class":256,"line":1382},93,[254,1384,1013],{"class":260},[254,1386,1016],{"class":264},[254,1388,1389],{"class":260},">verify\u003C/",[254,1391,1016],{"class":264},[254,1393,315],{"class":260},[254,1395,1397,1399,1401],{"class":256,"line":1396},94,[254,1398,1057],{"class":260},[254,1400,1005],{"class":264},[254,1402,315],{"class":260},[254,1404,1406,1408,1410],{"class":256,"line":1405},95,[254,1407,1002],{"class":260},[254,1409,1135],{"class":264},[254,1411,315],{"class":260},[254,1413,1415,1417,1419],{"class":256,"line":1414},96,[254,1416,1013],{"class":260},[254,1418,1243],{"class":264},[254,1420,315],{"class":260},[254,1422,1424,1427,1430,1433,1435],{"class":256,"line":1423},97,[254,1425,1426],{"class":260},"                \u003C",[254,1428,1429],{"class":264},"native.image.path",[254,1431,1432],{"class":260},">${project.build.directory}/${project.build.finalName}-runner\u003C/",[254,1434,1429],{"class":264},[254,1436,315],{"class":260},[254,1438,1440,1442,1444,1446,1448],{"class":256,"line":1439},98,[254,1441,1426],{"class":260},[254,1443,1253],{"class":264},[254,1445,1256],{"class":260},[254,1447,1253],{"class":264},[254,1449,315],{"class":260},[254,1451,1453,1455,1457,1459,1461],{"class":256,"line":1452},99,[254,1454,1426],{"class":260},[254,1456,1268],{"class":264},[254,1458,1271],{"class":260},[254,1460,1268],{"class":264},[254,1462,315],{"class":260},[254,1464,1466,1469,1471],{"class":256,"line":1465},100,[254,1467,1468],{"class":260},"              \u003C/",[254,1470,1243],{"class":264},[254,1472,315],{"class":260},[254,1474,1476,1478,1480],{"class":256,"line":1475},101,[254,1477,1057],{"class":260},[254,1479,1135],{"class":264},[254,1481,315],{"class":260},[254,1483,1485,1487,1489],{"class":256,"line":1484},102,[254,1486,1067],{"class":260},[254,1488,994],{"class":264},[254,1490,315],{"class":260},[254,1492,1494,1496,1498],{"class":256,"line":1493},103,[254,1495,1077],{"class":260},[254,1497,983],{"class":264},[254,1499,315],{"class":260},[254,1501,1503,1505,1507],{"class":256,"line":1502},104,[254,1504,641],{"class":260},[254,1506,919],{"class":264},[254,1508,315],{"class":260},[254,1510,1512,1514,1516],{"class":256,"line":1511},105,[254,1513,651],{"class":260},[254,1515,909],{"class":264},[254,1517,315],{"class":260},[254,1519,1521,1523,1525],{"class":256,"line":1520},106,[254,1522,527],{"class":260},[254,1524,899],{"class":264},[254,1526,315],{"class":260},[254,1528,1530,1532,1535],{"class":256,"line":1529},107,[254,1531,321],{"class":260},[254,1533,1534],{"class":264},"profiles",[254,1536,315],{"class":260},[254,1538,1540,1542,1545],{"class":256,"line":1539},108,[254,1541,392],{"class":260},[254,1543,1544],{"class":264},"profile",[254,1546,315],{"class":260},[254,1548,1550,1552,1555,1558,1560],{"class":256,"line":1549},109,[254,1551,557],{"class":260},[254,1553,1554],{"class":264},"id",[254,1556,1557],{"class":260},">native\u003C/",[254,1559,1554],{"class":264},[254,1561,315],{"class":260},[254,1563,1565,1567,1570],{"class":256,"line":1564},110,[254,1566,557],{"class":260},[254,1568,1569],{"class":264},"activation",[254,1571,315],{"class":260},[254,1573,1575,1577,1580],{"class":256,"line":1574},111,[254,1576,568],{"class":260},[254,1578,1579],{"class":264},"property",[254,1581,315],{"class":260},[254,1583,1585,1587,1590,1592,1594],{"class":256,"line":1584},112,[254,1586,991],{"class":260},[254,1588,1589],{"class":264},"name",[254,1591,1557],{"class":260},[254,1593,1589],{"class":264},[254,1595,315],{"class":260},[254,1597,1599,1601,1603],{"class":256,"line":1598},113,[254,1600,1077],{"class":260},[254,1602,1579],{"class":264},[254,1604,315],{"class":260},[254,1606,1608,1610,1612],{"class":256,"line":1607},114,[254,1609,641],{"class":260},[254,1611,1569],{"class":264},[254,1613,315],{"class":260},[254,1615,1617,1619,1621],{"class":256,"line":1616},115,[254,1618,557],{"class":260},[254,1620,384],{"class":264},[254,1622,315],{"class":260},[254,1624,1626,1628,1630,1633,1635],{"class":256,"line":1625},116,[254,1627,568],{"class":260},[254,1629,499],{"class":264},[254,1631,1632],{"class":260},">false\u003C/",[254,1634,499],{"class":264},[254,1636,315],{"class":260},[254,1638,1640,1642,1645,1647,1649],{"class":256,"line":1639},117,[254,1641,568],{"class":260},[254,1643,1644],{"class":264},"quarkus.package.type",[254,1646,1557],{"class":260},[254,1648,1644],{"class":264},[254,1650,315],{"class":260},[254,1652,1654,1656,1658],{"class":256,"line":1653},118,[254,1655,641],{"class":260},[254,1657,384],{"class":264},[254,1659,315],{"class":260},[254,1661,1663,1665,1667],{"class":256,"line":1662},119,[254,1664,651],{"class":260},[254,1666,1544],{"class":264},[254,1668,315],{"class":260},[254,1670,1672,1674,1676],{"class":256,"line":1671},120,[254,1673,527],{"class":260},[254,1675,1534],{"class":264},[254,1677,315],{"class":260},[254,1679,1681,1684,1686],{"class":256,"line":1680},121,[254,1682,1683],{"class":260},"\u003C/",[254,1685,286],{"class":264},[254,1687,315],{"class":260},[103,1689,1690],{"start":318},[64,1691,1692],{},"We then asked Chat to generate the Quarkus test file for this application by entering the following prompt:",[12,1694,1695],{},[129,1696,1697],{},[154,1698,1699],{},"Create the content for the Quarkus test for the application above",[12,1701,1702],{},[160,1703],{"alt":1704,"src":1705},"create-quarkus-test-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/create-quarkus-test-prompt.png",[12,1707,1708,1709,1712,1713,117],{},"Chat returned the body for the Quarkus test, how to use it, and the body of the Java class for the test needed for its native compilation. At this point, we were after the generated bodies of the file ",[71,1710,1711],{},"HelloResourceTest.java"," and ",[71,1714,1715],{},"HelloResourceIT.java",[12,1717,1718,1719,170],{},"Here is the generated body for ",[71,1720,1711],{},[172,1722,1725],{"className":1723,"code":1724,"language":177,"meta":178},[175],"package org.acme;\n\nimport io.quarkus.test.junit.QuarkusTest;\nimport org.junit.jupiter.api.Test;\n\nimport static io.restassured.RestAssured.given;\nimport static org.hamcrest.CoreMatchers.is;\n\n@QuarkusTest\npublic class HelloResourceTest {\n\n    @Test\n    public void testHelloEndpoint() {\n        given()\n          .when().get(\"/hello\")\n          .then()\n             .statusCode(200)\n             .body(is(\"Hello World\"));\n    }\n\n}\n",[71,1726,1724],{"__ignoreMap":178},[12,1728,1718,1729,170],{},[71,1730,1715],{},[172,1732,1735],{"className":1733,"code":1734,"language":177,"meta":178},[175],"package org.acme;\n\nimport io.quarkus.test.junit.QuarkusIntegrationTest;\n\n@QuarkusIntegrationTest\npublic class HelloResourceIT extends HelloResourceTest {\n    // Execute the same tests but in native mode.\n}\n",[71,1736,1734],{"__ignoreMap":178},[103,1738,1739],{"start":334},[64,1740,1741],{},"We needed to know how to organize these files in the GitLab project, so we asked about the directory structure for all these files by entering the following prompt in Chat:",[12,1743,1744],{},[129,1745,1746],{},[154,1747,1748],{},"Give me the entire directory structure for this project including the location of each file, e.g. pom.xml, Dockerfile.native, application.properties, HelloResource.java, HelloResourceTest.java, and the location of the target directory",[12,1750,1751],{},[160,1752],{"alt":1753,"src":1754},"create-dir-struct-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/create-dir-struct-prompt.png",[12,1756,1757,1758,1761,1762,1765],{},"Chat replied with a detailed diagram about the entire directory structure for the project and where all these files should be located as well as a description of the purpose of each of them. It even mentioned that the directory ",[71,1759,1760],{},"target/"," and its contents should not be version controlled since it was generated by the build process. Another interesting aspect of the reply was the existence of a file called ",[71,1763,1764],{},"resources/application.properties"," in the directory structure.",[12,1767,1768],{},[160,1769],{"alt":1770,"src":1771},"dir-struct-chat-response","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/dir-struct-chat-response.png",[12,1773,1774],{},"With all this information in our hands, we were ready to start creating these files in our GitLab project.",[35,1776,1778],{"id":1777},"populating-our-project-with-the-generated-content-for-each-file","Populating our project with the generated content for each file",[12,1780,1781],{},"We created each of the following files in their corresponding location and their generated content as provided by Chat:",[61,1783,1784,1789,1793,1798,1803,1807],{},[64,1785,1786],{},[71,1787,1788],{},"src/main/java/org/acme/HelloResource.java",[64,1790,1791],{},[71,1792,1764],{},[64,1794,1795],{},[71,1796,1797],{},"src/test/java/org/acme/HelloResourceTest.java",[64,1799,1800],{},[71,1801,1802],{},"src/test/java/org/acme/HelloResourceIT.java",[64,1804,1805],{},[71,1806,223],{},[64,1808,1809],{},[71,1810,189],{},[12,1812,1813,1815,1816,1819,1820,1823],{},[129,1814,131],{}," We considered using GitLab Auto Deploy for this endeavor but later realized that it would not be a supported option. We are mentioning this because in the video at the end of this tutorial, you will see that we asked Chat: ",[71,1817,1818],{},"How to set the service internalPort to 8080 for auto deploy",". Then we created a file named ",[71,1821,1822],{},".gitlab/auto-deploy-values.yaml"," with the generated content from Chat. The creation of this file is not necessary for this tutorial.",[12,1825,1826],{},"Before we started tackling the pipeline to build, containerize, and deploy the application to our Kubernetes cluster, we decided to generate the executable locally on our Mac and test the application locally.",[35,1828,1830],{"id":1829},"testing-the-application-locally","Testing the application locally",[12,1832,1833],{},"Here is the process we went through to test the application on our local machine.",[103,1835,1836],{},[64,1837,1838],{},"To build the application on the local Mac laptop, from a Terminal window, we entered the following command:",[172,1840,1844],{"className":1841,"code":1842,"language":1843,"meta":178,"style":178},"language-shell shiki shiki-themes github-light","mvn clean package -Pnative\n","shell",[71,1845,1846],{"__ignoreMap":178},[254,1847,1848,1851,1854,1857],{"class":256,"line":257},[254,1849,1850],{"class":267},"mvn",[254,1852,1853],{"class":274}," clean",[254,1855,1856],{"class":274}," package",[254,1858,1860],{"class":1859},"sYu0t"," -Pnative\n",[12,1862,1863],{},[160,1864],{"alt":1865,"src":1866},"first-build","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/first-build.png",[12,1868,1869],{},"The native compilation failed with the error message:",[12,1871,1872],{},[71,1873,1874],{},"Cannot find the ‘native-image’ in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using ‘gu install native-image’",[103,1876,1877],{"start":183},[64,1878,1879],{},"So, we used our trusty GitLab Duo Chat again and asked it the following:",[12,1881,1882],{},[129,1883,1884],{},[154,1885,1886],{},"The command “mvn clean package -Pnative” is failing with error “java.lang.RuntimeException: Cannot find the ‘native-image’ in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using gu install native-image”. I’m using a MacOS Sonoma. How do I fix this error on my Mac?",[12,1888,1889],{},[160,1890],{"alt":1891,"src":1892},"how-to-fix-build-failure-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/how-to-fix-build-failure-prompt.png",[12,1894,1895],{},"Chat replied with a detailed set of steps on how to install the necessary software and set the appropriate environment variables.",[103,1897,1898],{"start":217},[64,1899,1900],{},"We copied and pasted the following commands from the Chat window to a Terminal window:",[172,1902,1904],{"className":1841,"code":1903,"language":1843,"meta":178,"style":178},"brew install –cask graalvm/tap/graalvm-ce-java17\nexport JAVA_HOME=/Library/Java/JavaVIrtualMachines/graalvm-ce-java17-22.3.1\nexport GRAALVM_HOME=${JAVA_HOME}\nexport PATH=${GRAALVM_HOME}/bin:$PATH\nxattr -r -d com.apple.quarantine ${GRAALVM_HOME}/../..\ngu install native-image\n",[71,1905,1906,1920,1934,1946,1958,1978],{"__ignoreMap":178},[254,1907,1908,1911,1914,1917],{"class":256,"line":257},[254,1909,1910],{"class":267},"brew",[254,1912,1913],{"class":274}," install",[254,1915,1916],{"class":274}," –cask",[254,1918,1919],{"class":274}," graalvm/tap/graalvm-ce-java17\n",[254,1921,1922,1926,1929,1931],{"class":256,"line":183},[254,1923,1925],{"class":1924},"sD7c4","export",[254,1927,1928],{"class":260}," JAVA_HOME",[254,1930,271],{"class":1924},[254,1932,1933],{"class":260},"/Library/Java/JavaVIrtualMachines/graalvm-ce-java17-22.3.1\n",[254,1935,1936,1938,1941,1943],{"class":256,"line":217},[254,1937,1925],{"class":1924},[254,1939,1940],{"class":260}," GRAALVM_HOME",[254,1942,271],{"class":1924},[254,1944,1945],{"class":260},"${JAVA_HOME}\n",[254,1947,1948,1950,1953,1955],{"class":256,"line":318},[254,1949,1925],{"class":1924},[254,1951,1952],{"class":260}," PATH",[254,1954,271],{"class":1924},[254,1956,1957],{"class":260},"${GRAALVM_HOME}/bin:$PATH\n",[254,1959,1960,1963,1966,1969,1972,1975],{"class":256,"line":334},[254,1961,1962],{"class":267},"xattr",[254,1964,1965],{"class":1859}," -r",[254,1967,1968],{"class":1859}," -d",[254,1970,1971],{"class":274}," com.apple.quarantine",[254,1973,1974],{"class":260}," ${GRAALVM_HOME}",[254,1976,1977],{"class":274},"/../..\n",[254,1979,1980,1983,1985],{"class":256,"line":349},[254,1981,1982],{"class":267},"gu",[254,1984,1913],{"class":274},[254,1986,1987],{"class":274}," native-image\n",[12,1989,1990,1991,1994,1995,1998,1999,2002,2003,117],{},"The commands above installed the community edition of GraalVM Version 22.3.1 that supported Java 17. We noticed, during the brew install, that the version of the GraalVM being installed was ",[71,1992,1993],{},"java17-22.3.1",", so we had to update the pasted value for ",[71,1996,1997],{},"JAVA_HOME"," from ",[71,2000,2001],{},"graalvm-ce-java17-22.3.0"," to ",[71,2004,2005],{},"graalvm-ce-java17-22.3.1",[12,2007,2008,2009,2011],{},"We also had to run the ",[71,2010,1962],{}," command to get the GraalVM, which we had downloaded and installed on our Mac, out of quarantine so that it could run locally. Lastly, we installed the GraalVM native-image.",[103,2013,2014],{"start":318},[64,2015,2016],{},"At this point, we again, from a Terminal window, entered the following command to build the application on the local Mac laptop:",[172,2018,2019],{"className":1841,"code":1842,"language":1843,"meta":178,"style":178},[71,2020,2021],{"__ignoreMap":178},[254,2022,2023,2025,2027,2029],{"class":256,"line":257},[254,2024,1850],{"class":267},[254,2026,1853],{"class":274},[254,2028,1856],{"class":274},[254,2030,1860],{"class":1859},[12,2032,2033,2034,2037],{},"This time the compilation was successful and an executable was generated in the ",[71,2035,2036],{},"target"," directory.",[12,2039,2040],{},[160,2041],{"alt":2042,"src":2043},"successful-local-compilation","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/successful-local-compilation.png",[103,2045,2046],{"start":334},[64,2047,2048],{},"We ran the executable by entering the following commands from a Terminal window:",[172,2050,2052],{"className":1841,"code":2051,"language":1843,"meta":178,"style":178},"cd target\n./quarkus-native-1.0.0-SNAPSHOT-runner “-Dquarkus.http.host=0.0.0.0”\n",[71,2053,2054,2062],{"__ignoreMap":178},[254,2055,2056,2059],{"class":256,"line":257},[254,2057,2058],{"class":1859},"cd",[254,2060,2061],{"class":274}," target\n",[254,2063,2064,2067],{"class":256,"line":183},[254,2065,2066],{"class":267},"./quarkus-native-1.0.0-SNAPSHOT-runner",[254,2068,2069],{"class":274}," “-Dquarkus.http.host=0.0.0.0”\n",[12,2071,2072],{},[160,2073],{"alt":2074,"src":2075},"executable-local-run","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/executable-local-run.png",[103,2077,2078],{"start":349},[64,2079,2080],{},"With the application running, we opened a browser window, and in the URL field, we entered:",[172,2082,2085],{"className":2083,"code":2084,"language":177,"meta":178},[175],"http://localhost:8080/hello\n",[71,2086,2084],{"__ignoreMap":178},[12,2088,2089],{},[160,2090],{"alt":2091,"src":2092},"app-running-locally","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/app-running-locally.png",[12,2094,2095,2096,2099],{},"The application returned the string ",[71,2097,2098],{},"Hello World",", which was displayed in the browser window.",[12,2101,2102],{},"At this point, we committed and pushed all the changes to our GitLab project and started working on creating a CI/CD pipeline that would build and deploy the application to a Kubernetes cluster running on the cloud.",[12,2104,2105,2106,2109,2110,2112],{},"But before continuing, we remembered to add, commit, and push a ",[71,2107,2108],{},".gitignore"," file to our project that included the path ",[71,2111,1760],{},", since this was the directory where the executable would be created and we didn’t need to keep it - or its contents - under version control.",[35,2114,2116],{"id":2115},"creating-the-pipeline-with-gitlab-duo-chat","Creating the pipeline with GitLab Duo Chat",[12,2118,2119],{},"Now that we had already successfully tested the application locally on our Mac, we needed to create the CI/CD pipeline that would compile the application, containerize it, and deploy it to our Kubernetes cluster. We wanted to keep the pipeline simple, brief, and have a single environment in which to deploy it. To this end, the pipeline would not tackle multiple environments or feature branches, for example.",[103,2121,2122],{},[64,2123,2124],{},"To avoid manually creating a pipeline from scratch, we decided to once again leverage Chat. We entered the following prompt",[12,2126,2127],{},[129,2128,2129],{},[154,2130,2131],{},"Create a .gitlab-ci.yml file with 3 stages: build, containerize, and deploy. Each of these stages should have a single job with the same name. The build job should compile the application natively using the -Pnative maven option and the builder image for mandrel jdk-22 for java17 and store the application executable and its Dockerfile as artifacts. The containerize job should use docker to build and push the image to the built-in container registry. The deploy job should rollout the containerized application, named quarkus-app, to the production environment in the Kubernetes cluster by creating a deployment resource, a service resource and an ingress rule with host ${KUBE_INGRESS_BASE_DOMAIN} and /hello prefix. The deploy job should also include the url for the production environment. When setting the Kubernetes context, use ${KUBE_CONTEXT}, and for application namespace, use ${KUBE_NAMESPACE}",[12,2133,2134],{},[160,2135],{"alt":2136,"src":2137},"create-pipeline-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/create-pipeline-prompt.png",[12,2139,2140],{},"The prompt above provided some points that we thought would be useful and necessary for a good outcome. The requirements listed by the prompt were:",[61,2142,2143,2146,2149,2152,2159,2162,2165,2168,2175],{},[64,2144,2145],{},"It specified that the pipeline needed to have three stages: build, containerize, and deploy.",[64,2147,2148],{},"Each stage would have a single job.",[64,2150,2151],{},"The build job should natively compile (not build) the application using the -Pnative option.",[64,2153,2154,2155,2158],{},"The build job should use the open source software ",[71,2156,2157],{},"mandrel"," and use the version that would support jdk-22 for Java 17. Remember that these were the versions that we tested on our local machine.",[64,2160,2161],{},"The build job would also need to pass the resulting executable and the project Dockerfile to the next job, i.e. containerize, in the pipeline.",[64,2163,2164],{},"The containerize job should build a docker image with the executable using the Dockerfile, both of which were passed as artifacts.",[64,2166,2167],{},"The containerize job should push the image to the GitLab container registry.",[64,2169,2170,2171,2174],{},"The deploy job should use the image from the GitLab container registry, name it ",[71,2172,2173],{},"quarkus-app",", and deploy it to the Kubernetes cluster using deployment, service and ingress rule resources.",[64,2176,2177,2178,2181,2182,2185,2186,2189],{},"The deploy job should use the environment variables ",[71,2179,2180],{},"${KUBE_INGRESS_BASE_DOMAIN}",", ",[71,2183,2184],{},"${KUBE_CONTEXT}",", and ",[71,2187,2188],{},"${KUBE_NAMESPACE}",", which had been defined as group/project variables, accordingly.",[12,2191,2192,2193,2196],{},"Chat responded with the following ",[71,2194,2195],{},".gitlab-ci.yml"," example:",[172,2198,2201],{"className":2199,"code":2200,"language":177,"meta":178},[175],"# Define the stages for the pipeline\nstages:\n  - build\n  - containerize\n  - deploy\n\n# Variables section to use GitLab CI/CD variables\nvariables:\n  MAVEN_OPTS: \"-Dmaven.repo.local=.m2/repository\"\n  MAVEN_CLI_OPTS: \"--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true\"\n  CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}\n\n# Cache configuration for Maven dependencies\ncache:\n  paths:\n    - .m2/repository\n\n# Build stage: Compile the application natively\nbuild:\n  stage: build\n  image:\n    name: quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17\n    entrypoint:\n      - \"\"\n  script:\n    - ./mvnw ${MAVEN_CLI_OPTS} clean package -Pnative\n  artifacts:\n    paths:\n      - target/*-runner\n      - src/main/docker/Dockerfile.native-micro\n  # This job runs only on the main branch\n  only:\n      - main\n\n# Containerize stage: Build and push Docker image\ncontainerize:\n  stage: containerize\n  image: docker:20.10.16\n  services:\n    - docker:20.10.16-dind\n  variables:\n    DOCKER_TLS_CERTDIR: \"/certs\"\n  before_script:\n    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY\n  script:\n    - docker build -f src/main/docker/Dockerfile.native-micro -t ${CONTAINER_IMAGE} .\n    - docker push ${CONTAINER_IMAGE}\n  # This job runs only on the main branch\n  only:\n      - main\n\n# Deploy stage: Deploy to Kubernetes\ndeploy:\n  stage: deploy\n  image: \n    name: bitnami/kubectl:latest\n    entrypoint: ['']\n  script:\n    - kubectl config use-context ${KUBE_CONTEXT}\n    - kubectl config set-context --current --namespace=${KUBE_NAMESPACE}\n    - |\n      cat \u003C\u003CEOF | kubectl apply -f -\n      apiVersion: apps/v1\n      kind: Deployment\n      metadata:\n        name: quarkus-app\n      spec:\n        replicas: 1\n        selector:\n          matchLabels:\n            app: quarkus-app\n        template:\n          metadata:\n            labels:\n              app: quarkus-app\n          spec:\n            containers:\n            - name: quarkus-app\n              image: ${CONTAINER_IMAGE}\n              ports:\n              - containerPort: 8080\n      ---\n      apiVersion: v1\n      kind: Service\n      metadata:\n        name: quarkus-app\n      spec:\n        selector:\n          app: quarkus-app\n        ports:\n        - port: 80\n          targetPort: 8080\n      ---\n      apiVersion: networking.k8s.io/v1\n      kind: Ingress\n      metadata:\n        name: quarkus-app\n      spec:\n        rules:\n        - host: ${KUBE_INGRESS_BASE_DOMAIN}\n          http:\n            paths:\n            - path: /hello\n              pathType: Prefix\n              backend:\n                service:\n                  name: quarkus-app\n                  port: \n                    number: 80\n      EOF\n    - echo \"Application deployed to https://${KUBE_INGRESS_BASE_DOMAIN}/hello\"\n  # This job runs only on the main branch\n  only:\n      - main\n\n",[71,2202,2200],{"__ignoreMap":178},[103,2204,2205],{"start":183},[64,2206,2207,2208,2210,2211,2214],{},"There were some things we needed to adjust in the sample ",[71,2209,2195],{}," file above before we could commit it to our ",[71,2212,2213],{},"main"," branch. These are the updates we made to the file:",[61,2216,2217,2224],{},[64,2218,2219,2220,2223],{},"We deleted all occurrences of ",[71,2221,2222],{},"only: -main"," because we wanted to keep of pipeline definition file simple and with no branch-related rules.",[64,2225,2226,2227,2002,2230,117],{},"We fixed the name of the file ",[71,2228,2229],{},"Dockerfile.native-micro",[71,2231,189],{},[103,2233,2234],{"start":217},[64,2235,2236,2237,2240],{},"At this point, we wanted to ensure that the deployment would be to the ",[71,2238,2239],{},"production"," environment so we asked Chat the following prompt:",[12,2242,2243],{},[129,2244,2245],{},[154,2246,2247],{},"What is the syntax to specify an environment with its url in a pipeline?",[12,2249,2250],{},[160,2251],{"alt":2252,"src":2253},"how-to-add-env-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/how-to-add-env-prompt.png",[12,2255,2256],{},"The response from Chat included an example of how to do this so we used this information to add the following environment block to our pipeline:",[172,2258,2261],{"className":2259,"code":2260,"language":177,"meta":178},[175],"\n  environment:\n       name: production\n       url: http://${KUBE_INGRESS_BASE_DOMAIN}/hello\n\n",[71,2262,2260],{"__ignoreMap":178},[103,2264,2265,2276],{"start":318},[64,2266,2267,2268,2271,2272,2275],{},"The example provided by Chat includes a URL that started with ",[71,2269,2270],{},"https"," and we modified that to ",[71,2273,2274],{},"http"," since we didn’t really need a secure connection for this simple application.",[64,2277,2278,2279,2281,2282,2285],{},"Lastly, we noticed that in the ",[71,2280,899],{}," job, there was a script ",[71,2283,2284],{},"mvnw"," that we didn’t have in our project. So, we asked Chat the following:",[12,2287,2288],{},[129,2289,2290],{},[154,2291,2292],{},"How can I get the mvnw script for Quarkus?",[12,2294,2295],{},[160,2296],{"alt":2297,"src":2298},"how-to-add-mvnw-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/how-to-add-mvnw-prompt.png",[12,2300,2301],{},"Chat responded with the command to execute to bootstrap and create this script. We executed this command from a Terminal window:",[172,2303,2305],{"className":1841,"code":2304,"language":1843,"meta":178,"style":178},"mvn wrapper:wrapper\n",[71,2306,2307],{"__ignoreMap":178},[254,2308,2309,2311],{"class":256,"line":257},[254,2310,1850],{"class":267},[254,2312,2313],{"class":274}," wrapper:wrapper\n",[12,2315,2316,2317,2319],{},"We were now ready to commit all of our changes to the ",[71,2318,2213],{}," branch and have the pipeline executed. However, on our first attempt, our first pipeline failed at the build job.",[35,2321,2323],{"id":2322},"troubleshooting-using-gitlab-duo-root-cause-analysis","Troubleshooting using GitLab Duo Root Cause Analysis",[12,2325,2326,2327,2332],{},"Our first attempt at running our brand-new pipeline failed. So, we took advantage of ",[16,2328,2331],{"href":2329,"rel":2330},"https://about.gitlab.com/blog/developing-gitlab-duo-blending-ai-and-root-cause-analysis-to-fix-ci-cd/",[],"GitLab Duo Root Cause Analysis",", which looks at the job logs and provides a thorough natural language explanation (with examples) of the root cause of the problem and, most importantly, how to fix it.",[12,2334,2335],{},[160,2336],{"alt":2337,"src":2338},"build-job-troubleshooting","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/build-job-troubleshooting.png",[12,2340,2341,2342,2345],{},"Root Cause Analysis recommended we look at the compatibility of the command that was trying to be executed with the image of mandrel used in the build job. We were not using any command with the image so we concluded that it must have been the predefined ",[71,2343,2344],{},"entrypoint"," for the image itself. We needed to override this so we asked Chat the following:",[12,2347,2348],{},[129,2349,2350],{},[154,2351,2352],{},"How do I override the entrypoint of an image using gitlab keywords?",[12,2354,2355],{},[160,2356],{"alt":2357,"src":2358},"how-to-override-entrypoint-prompt","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/how-to-override-entrypoint-prompt.png",[12,2360,2361],{},"Chat replied with some use case examples of overriding an image entry point. We used that information to update the build job image definition:",[172,2363,2367],{"className":2364,"code":2365,"language":2366,"meta":178,"style":178},"language-yaml shiki shiki-themes github-light","build:\n    stage: build\n    image: quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17\n    entrypoint:\n        - “”\n\n","yaml",[71,2368,2369,2376,2387,2397,2404],{"__ignoreMap":178},[254,2370,2371,2373],{"class":256,"line":257},[254,2372,899],{"class":264},[254,2374,2375],{"class":260},":\n",[254,2377,2378,2381,2384],{"class":256,"line":183},[254,2379,2380],{"class":264},"    stage",[254,2382,2383],{"class":260},": ",[254,2385,2386],{"class":274},"build\n",[254,2388,2389,2392,2394],{"class":256,"line":217},[254,2390,2391],{"class":264},"    image",[254,2393,2383],{"class":260},[254,2395,2396],{"class":274},"quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17\n",[254,2398,2399,2402],{"class":256,"line":318},[254,2400,2401],{"class":264},"    entrypoint",[254,2403,2375],{"class":260},[254,2405,2406,2409],{"class":256,"line":334},[254,2407,2408],{"class":260},"        - ",[254,2410,2411],{"class":274},"“”\n",[12,2413,2414,2415,2417,2418,2421],{},"We committed our changes to the ",[71,2416,2213],{}," branch, which launched a new instance of the pipeline. This time the build job executed successfully but the pipeline failed at the ",[71,2419,2420],{},"containerize"," job.",[35,2423,2425],{"id":2424},"running-a-successful-pipeline","Running a successful pipeline",[12,2427,2428,2429,2431],{},"Before drilling down into the log of the failed ",[71,2430,2420],{}," job, we decided to drill into the log of the successfully completed build job first. Everything looked good in the log of the build job with the exception of this warning message at the very end of it:",[172,2433,2436],{"className":2434,"code":2435,"language":177,"meta":178},[175],"WARNING: src/main/docker/Dockerfile.native: no matching files. Ensure that the artifact path is relative to the working directory …\n",[71,2437,2435],{"__ignoreMap":178},[12,2439,2440,2441,2443,2444,2447,2448,2450],{},"We took notice of this warning and then headed to the log of the failed ",[71,2442,2420],{}," job. In it, we saw that the ",[71,2445,2446],{},"docker build"," command had failed due to a non-existent Dockerfile. We ran Root Cause Analysis on the job and among its suggested fixes was for us to verify that the project structure matched the path of the specified ",[71,2449,189],{}," file.",[12,2452,2453],{},[160,2454],{"alt":2455,"src":2456},"containerize-job-troubleshooting","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/containerize-job-troubleshooting.png",[12,2458,2459,2460,2462,2463,2466],{},"This information confirmed our suspicion of the misplaced ",[71,2461,189],{}," file. Instead of being at the directory ",[71,2464,2465],{},"src/main/docker"," as specified in the pipeline, it was located at the root directory of the project.",[12,2468,2469,2470,2472,2473,2475,2476,2478],{},"So, we went back to our project and updated every occurrence of the location of this file in our ",[71,2471,2195],{}," file. We modified the two locations where this happened, one in the ",[71,2474,899],{}," job and one in the ",[71,2477,2420],{}," job, as follows:",[172,2480,2483],{"className":2481,"code":2482,"language":177,"meta":178},[175],"src/main/docker/Dockerfile.native\n",[71,2484,2482],{"__ignoreMap":178},[12,2486,2487],{},"to",[172,2489,2492],{"className":2490,"code":2491,"language":177,"meta":178},[175],"Dockerfile.native\n",[71,2493,2491],{"__ignoreMap":178},[12,2495,2496,2497,2499],{},"We committed our updates to the ",[71,2498,2213],{}," branch and this time our entire pipeline executed successfully!",[12,2501,2502],{},[160,2503],{"alt":2504,"src":2505},"pipeline-successful-run","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/pipeline-successful-run.png",[12,2507,2508,2509,2511],{},"Our last step was to check the running application in the ",[71,2510,2239],{}," environment in our Kubernetes cluster.",[35,2513,2515],{"id":2514},"accessing-the-deployed-application-running-in-cluster","Accessing the deployed application running in cluster",[12,2517,2518,2519,2522,2523,2525,2526,2528],{},"Once the pipeline ran successfully to completion, we drilled in the log file for the ",[71,2520,2521],{},"deploy"," job. Remember, this job printed the URL of the application at the end of its execution. We scrolled down to the bottom of the log and clicked on the ",[71,2524,2270],{}," application link, which opened a browser window warning us that the connection was not private (we disabled ",[71,2527,2270],{}," for the environment URL but forgot it for this string). We proceeded past the browser warning and then the string \"Hello World\" was displaced in the browser window indicating that the application was up and running in the Kubernetes cluster.",[12,2530,2531,2532,2535],{},"Finally, to double-check our production deployment URL, we headed to the project ",[129,2533,2534],{},"Operate > Environments"," window, and clicked on the \"Open\" button for it, which immediately opened a browser window with the \"Hello World\" message.",[12,2537,2538],{},[160,2539],{"alt":2540,"src":2541},"app-running-on-k8s","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675940/Blog/Content%20Images/app-running-on-k8s.png",[35,2543,2545],{"id":2544},"try-it","Try it",[12,2547,2548,2549,2552],{},"We created, compiled, built, and deployed a simple Quarkus application to a Kubernetes cluster using ",[16,2550,32],{"href":30,"rel":2551},[],". This approach allowed us to be more efficient and productive in all the tasks that we performed and it helped us streamline our DevSecOps processes. We have shown only a small portion of how GitLab Duo's AI-powered capabilities can help you, namely Chat and Root Cause Analysis. There’s so much more you can leverage in GitLab Duo to help you create better software faster and more securely.",[12,2554,2555],{},"Watch this whole use case in action:",[2557,2558,2561,2562],"figure",{"className":2559},[2560],"video_container","\n  ",[2563,2564,2568],"iframe",{"src":2565,"frameBorder":2566,"allowFullScreen":2567},"https://www.youtube.com/embed/xDpycxz3RPY?si=HHZrFt1O_8XoLATf","0","true"," ",[12,2570,2571,2572,117],{},"All the project assets we used are available ",[16,2573,2576],{"href":2574,"rel":2575},"https://gitlab.com/gitlab-da/use-cases/ai/ai-applications/quarkusn/quarkus-native",[],"here",[2578,2579,2580],"blockquote",{},[12,2581,2582,2587],{},[16,2583,2586],{"href":2584,"rel":2585},"https://about.gitlab.com/sales/?type=free-trial&toggle=gitlab-duo-pro",[],"Try GitLab Duo for free"," and get started on exciting projects like this.",[2589,2590,2591],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}",{"title":178,"searchDepth":183,"depth":183,"links":2593},[2594,2595,2596,2597,2598,2599,2600,2601,2602,2603],{"id":37,"depth":183,"text":38},{"id":55,"depth":183,"text":56},{"id":135,"depth":183,"text":136},{"id":1777,"depth":183,"text":1778},{"id":1829,"depth":183,"text":1830},{"id":2115,"depth":183,"text":2116},{"id":2322,"depth":183,"text":2323},{"id":2424,"depth":183,"text":2425},{"id":2514,"depth":183,"text":2515},{"id":2544,"depth":183,"text":2545},"ai","2024-10-17","This tutorial shows how a Java application is compiled to machine code and deployed to a Kubernetes cluster using a CI/CD pipeline. See how AI makes the process faster and more efficient.","md",null,true,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749666069/Blog/Hero%20Images/AdobeStock_639935439.jpg",{},"/en-us/blog/use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project",{"title":5,"description":2606,"ogTitle":5,"ogDescription":2606,"noIndex":2614,"ogImage":2610,"ogUrl":2615,"ogSiteName":2616,"ogType":2617,"canonicalUrls":2615},false,"https://about.gitlab.com/blog/use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project","https://about.gitlab.com","article","use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project","en-us/blog/use-gitlab-duo-to-build-and-deploy-a-simple-quarkus-native-project",[2621,97,2622,2623,2624,2625,2626],"AI","DevSecOps","demo","features","product","CI/CD","BlogPost","ByPWk1ycgpKPmybxbziiOJp4cPnHcseAb2LGuDOUjZQ",{"logo":2630,"freeTrial":2635,"sales":2640,"login":2645,"items":2650,"search":2976,"minimal":3007,"duo":3026,"switchNav":3035,"pricingDeployment":3046},{"config":2631},{"href":2632,"dataGaName":2633,"dataGaLocation":2634},"/","gitlab logo","header",{"text":2636,"config":2637},"Get free trial",{"href":2638,"dataGaName":2639,"dataGaLocation":2634},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":2641,"config":2642},"Request a demo",{"href":2643,"dataGaName":2644,"dataGaLocation":2634},"/sales/?contact-topic=request-demo","sales",{"text":2646,"config":2647},"Sign in",{"href":2648,"dataGaName":2649,"dataGaLocation":2634},"https://gitlab.com/users/sign_in/","sign in",[2651,2680,2779,2784,2898,2954],{"text":2652,"config":2653,"menu":2655},"Platform",{"dataNavLevelOne":2654},"platform",{"type":2656,"columns":2657},"cards",[2658,2664,2672],{"title":2652,"description":2659,"link":2660},"The intelligent orchestration platform for DevSecOps",{"text":2661,"config":2662},"Explore our Platform",{"href":2663,"dataGaName":2654,"dataGaLocation":2634},"/platform/",{"title":2665,"description":2666,"link":2667},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":2668,"config":2669},"Meet GitLab Duo",{"href":2670,"dataGaName":2671,"dataGaLocation":2634},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":2673,"description":2674,"link":2675},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":2676,"config":2677},"Learn more",{"href":2678,"dataGaName":2679,"dataGaLocation":2634},"/why-gitlab/","why gitlab",{"text":2681,"left":2609,"config":2682,"menu":2684},"Product",{"dataNavLevelOne":2683},"solutions",{"type":2685,"link":2686,"columns":2690,"feature":2758},"lists",{"text":2687,"config":2688},"View all Solutions",{"href":2689,"dataGaName":2683,"dataGaLocation":2634},"/solutions/",[2691,2714,2737],{"title":2692,"description":2693,"link":2694,"items":2699},"Automation","CI/CD and automation to accelerate deployment",{"config":2695},{"icon":2696,"href":2697,"dataGaName":2698,"dataGaLocation":2634},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[2700,2703,2706,2710],{"text":2626,"config":2701},{"href":2702,"dataGaLocation":2634,"dataGaName":2626},"/solutions/continuous-integration/",{"text":2665,"config":2704},{"href":2670,"dataGaLocation":2634,"dataGaName":2705},"gitlab duo agent platform - product menu",{"text":2707,"config":2708},"Source Code Management",{"href":2709,"dataGaLocation":2634,"dataGaName":2707},"/solutions/source-code-management/",{"text":2711,"config":2712},"Automated Software Delivery",{"href":2697,"dataGaLocation":2634,"dataGaName":2713},"Automated software delivery",{"title":2715,"description":2716,"link":2717,"items":2722},"Security","Deliver code faster without compromising security",{"config":2718},{"href":2719,"dataGaName":2720,"dataGaLocation":2634,"icon":2721},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[2723,2727,2732],{"text":2724,"config":2725},"Application Security Testing",{"href":2719,"dataGaName":2726,"dataGaLocation":2634},"Application security testing",{"text":2728,"config":2729},"Software Supply Chain Security",{"href":2730,"dataGaLocation":2634,"dataGaName":2731},"/solutions/supply-chain/","Software supply chain security",{"text":2733,"config":2734},"Software Compliance",{"href":2735,"dataGaName":2736,"dataGaLocation":2634},"/solutions/software-compliance/","software compliance",{"title":2738,"link":2739,"items":2744},"Measurement",{"config":2740},{"icon":2741,"href":2742,"dataGaName":2743,"dataGaLocation":2634},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[2745,2749,2753],{"text":2746,"config":2747},"Visibility & Measurement",{"href":2742,"dataGaLocation":2634,"dataGaName":2748},"Visibility and Measurement",{"text":2750,"config":2751},"Value Stream Management",{"href":2752,"dataGaLocation":2634,"dataGaName":2750},"/solutions/value-stream-management/",{"text":2754,"config":2755},"Analytics & Insights",{"href":2756,"dataGaLocation":2634,"dataGaName":2757},"/solutions/analytics-and-insights/","Analytics and insights",{"title":2759,"type":2685,"items":2760},"GitLab for",[2761,2767,2773],{"text":2762,"config":2763},"Enterprise",{"icon":2764,"href":2765,"dataGaLocation":2634,"dataGaName":2766},"Building","/enterprise/","enterprise",{"text":2768,"config":2769},"Small Business",{"icon":2770,"href":2771,"dataGaLocation":2634,"dataGaName":2772},"Work","/small-business/","small business",{"text":2774,"config":2775},"Public Sector",{"icon":2776,"href":2777,"dataGaLocation":2634,"dataGaName":2778},"Organization","/solutions/public-sector/","public sector",{"text":2780,"config":2781},"Pricing",{"href":2782,"dataGaName":2783,"dataGaLocation":2634,"dataNavLevelOne":2783},"/pricing/","pricing",{"text":2785,"config":2786,"menu":2788},"Resources",{"dataNavLevelOne":2787},"resources",{"type":2685,"link":2789,"columns":2793,"feature":2887},{"text":2790,"config":2791},"View all resources",{"href":2792,"dataGaName":2787,"dataGaLocation":2634},"/resources/",[2794,2827,2854],{"title":2795,"items":2796},"Getting started",[2797,2802,2807,2812,2817,2822],{"text":2798,"config":2799},"Install",{"href":2800,"dataGaName":2801,"dataGaLocation":2634},"/install/","install",{"text":2803,"config":2804},"Quick start guides",{"href":2805,"dataGaName":2806,"dataGaLocation":2634},"/get-started/","quick setup checklists",{"text":2808,"config":2809},"Learn",{"href":2810,"dataGaLocation":2634,"dataGaName":2811},"https://university.gitlab.com/","learn",{"text":2813,"config":2814},"Product documentation",{"href":2815,"dataGaName":2816,"dataGaLocation":2634},"https://docs.gitlab.com/","product documentation",{"text":2818,"config":2819},"Best practice videos",{"href":2820,"dataGaName":2821,"dataGaLocation":2634},"/getting-started-videos/","best practice videos",{"text":2823,"config":2824},"Integrations",{"href":2825,"dataGaName":2826,"dataGaLocation":2634},"/integrations/","integrations",{"title":2828,"items":2829},"Discover",[2830,2835,2840,2845,2849],{"text":2831,"config":2832},"Customer success stories",{"href":2833,"dataGaName":2834,"dataGaLocation":2634},"/customers/","customer success stories",{"text":2836,"config":2837},"Blog",{"href":2838,"dataGaName":2839,"dataGaLocation":2634},"/blog/","blog",{"text":2841,"config":2842},"Demo Hub",{"href":2843,"dataGaName":2844,"dataGaLocation":2634},"/demo-hub/","demo hub",{"text":2846,"config":2847},"The Source",{"href":2848,"dataGaName":2839,"dataGaLocation":2634},"/the-source/",{"text":2850,"config":2851},"Remote",{"href":2852,"dataGaName":2853,"dataGaLocation":2634},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":2855,"items":2856},"Connect",[2857,2862,2867,2872,2877,2882],{"text":2858,"config":2859},"GitLab Services",{"href":2860,"dataGaName":2861,"dataGaLocation":2634},"/services/","services",{"text":2863,"config":2864},"Contribute",{"href":2865,"dataGaName":2866,"dataGaLocation":2634},"https://contributors.gitlab.com","contribute",{"text":2868,"config":2869},"Community",{"href":2870,"dataGaName":2871,"dataGaLocation":2634},"/community/","community",{"text":2873,"config":2874},"Forum",{"href":2875,"dataGaName":2876,"dataGaLocation":2634},"https://forum.gitlab.com/","forum",{"text":2878,"config":2879},"Events",{"href":2880,"dataGaName":2881,"dataGaLocation":2634},"/events/","events",{"text":2883,"config":2884},"Partners",{"href":2885,"dataGaName":2886,"dataGaLocation":2634},"/partners/","partners",{"config":2888,"title":2891,"text":2892,"link":2893},{"background":2889,"textColor":2890},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":2894,"config":2895},"Read the latest",{"href":2896,"dataGaName":2897,"dataGaLocation":2634},"/whats-new/","whats new",{"text":2899,"config":2900,"menu":2902},"Company",{"dataNavLevelOne":2901},"company",{"type":2685,"columns":2903},[2904],{"items":2905},[2906,2911,2917,2919,2924,2929,2934,2939,2944,2949],{"text":2907,"config":2908},"About",{"href":2909,"dataGaName":2910,"dataGaLocation":2634},"/company/","about",{"text":2912,"config":2913,"footerGa":2916},"Jobs",{"href":2914,"dataGaName":2915,"dataGaLocation":2634},"/jobs/","jobs",{"dataGaName":2915},{"text":2878,"config":2918},{"href":2880,"dataGaName":2881,"dataGaLocation":2634},{"text":2920,"config":2921},"Leadership",{"href":2922,"dataGaName":2923,"dataGaLocation":2634},"/company/team/e-group/","leadership",{"text":2925,"config":2926},"Handbook",{"href":2927,"dataGaName":2928,"dataGaLocation":2634},"https://handbook.gitlab.com/","handbook",{"text":2930,"config":2931},"Investor relations",{"href":2932,"dataGaName":2933,"dataGaLocation":2634},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":2935,"config":2936},"Trust Center",{"href":2937,"dataGaName":2938,"dataGaLocation":2634},"/security/","trust center",{"text":2940,"config":2941},"AI Transparency Center",{"href":2942,"dataGaName":2943,"dataGaLocation":2634},"/ai-transparency-center/","ai transparency center",{"text":2945,"config":2946},"Newsletter",{"href":2947,"dataGaName":2948,"dataGaLocation":2634},"/company/contact/#contact-forms","newsletter",{"text":2950,"config":2951},"Press",{"href":2952,"dataGaName":2953,"dataGaLocation":2634},"/press/","press",{"text":2955,"config":2956,"menu":2957},"Contact us",{"dataNavLevelOne":2901},{"type":2685,"columns":2958},[2959],{"items":2960},[2961,2966,2971],{"text":2962,"config":2963},"Talk to sales",{"href":2964,"dataGaName":2965,"dataGaLocation":2634},"/sales/","talk to sales",{"text":2967,"config":2968},"Support portal",{"href":2969,"dataGaName":2970,"dataGaLocation":2634},"https://support.gitlab.com/hc/en-us","support portal",{"text":2972,"config":2973},"Customer portal",{"href":2974,"dataGaName":2975,"dataGaLocation":2634},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":2977,"login":2978,"suggestions":2985},"Close",{"text":2979,"link":2980},"To search repositories and projects, login to",{"text":2981,"config":2982},"gitlab.com",{"href":2648,"dataGaName":2983,"dataGaLocation":2984},"search login","search",{"text":2986,"default":2987},"Suggestions",[2988,2990,2994,2996,3000,3004],{"text":2665,"config":2989},{"href":2670,"dataGaName":2665,"dataGaLocation":2984},{"text":2991,"config":2992},"Code Suggestions (AI)",{"href":2993,"dataGaName":2991,"dataGaLocation":2984},"/solutions/code-suggestions/",{"text":2626,"config":2995},{"href":2702,"dataGaName":2626,"dataGaLocation":2984},{"text":2997,"config":2998},"GitLab on AWS",{"href":2999,"dataGaName":2997,"dataGaLocation":2984},"/partners/technology-partners/aws/",{"text":3001,"config":3002},"GitLab on Google Cloud",{"href":3003,"dataGaName":3001,"dataGaLocation":2984},"/partners/technology-partners/google-cloud-platform/",{"text":3005,"config":3006},"Why GitLab?",{"href":2678,"dataGaName":3005,"dataGaLocation":2984},{"freeTrial":3008,"mobileIcon":3013,"desktopIcon":3018,"secondaryButton":3021},{"text":3009,"config":3010},"Start free trial",{"href":3011,"dataGaName":2639,"dataGaLocation":3012},"https://gitlab.com/-/trials/new/","nav",{"altText":3014,"config":3015},"Gitlab Icon",{"src":3016,"dataGaName":3017,"dataGaLocation":3012},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":3014,"config":3019},{"src":3020,"dataGaName":3017,"dataGaLocation":3012},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":3022,"config":3023},"Get Started",{"href":3024,"dataGaName":3025,"dataGaLocation":3012},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":3027,"mobileIcon":3031,"desktopIcon":3033},{"text":3028,"config":3029},"Learn more about GitLab Duo",{"href":2670,"dataGaName":3030,"dataGaLocation":3012},"gitlab duo",{"altText":3014,"config":3032},{"src":3016,"dataGaName":3017,"dataGaLocation":3012},{"altText":3014,"config":3034},{"src":3020,"dataGaName":3017,"dataGaLocation":3012},{"button":3036,"mobileIcon":3041,"desktopIcon":3043},{"text":3037,"config":3038},"/switch",{"href":3039,"dataGaName":3040,"dataGaLocation":3012},"#contact","switch",{"altText":3014,"config":3042},{"src":3016,"dataGaName":3017,"dataGaLocation":3012},{"altText":3014,"config":3044},{"src":3045,"dataGaName":3017,"dataGaLocation":3012},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":3047,"mobileIcon":3052,"desktopIcon":3054},{"text":3048,"config":3049},"Back to pricing",{"href":2782,"dataGaName":3050,"dataGaLocation":3012,"icon":3051},"back to pricing","GoBack",{"altText":3014,"config":3053},{"src":3016,"dataGaName":3017,"dataGaLocation":3012},{"altText":3014,"config":3055},{"src":3020,"dataGaName":3017,"dataGaLocation":3012},{"title":3057,"titleMobile":3058,"button":3059,"config":3064},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":2676,"config":3060},{"href":3061,"dataGaName":3062,"dataGaLocation":3063},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":3065,"disabled":2614},"release",{"data":3067},{"text":3068,"source":3069,"edit":3075,"contribute":3080,"config":3085,"items":3090,"minimal":3299},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":3070,"config":3071},"View page source",{"href":3072,"dataGaName":3073,"dataGaLocation":3074},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":3076,"config":3077},"Edit this page",{"href":3078,"dataGaName":3079,"dataGaLocation":3074},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":3081,"config":3082},"Please contribute",{"href":3083,"dataGaName":3084,"dataGaLocation":3074},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":3086,"facebook":3087,"youtube":3088,"linkedin":3089},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[3091,3138,3191,3235,3267],{"title":2780,"links":3092,"subMenu":3107},[3093,3097,3102],{"text":3094,"config":3095},"View plans",{"href":2782,"dataGaName":3096,"dataGaLocation":3074},"view plans",{"text":3098,"config":3099},"Why Premium?",{"href":3100,"dataGaName":3101,"dataGaLocation":3074},"/pricing/premium/","why premium",{"text":3103,"config":3104},"Why Ultimate?",{"href":3105,"dataGaName":3106,"dataGaLocation":3074},"/pricing/ultimate/","why ultimate",[3108],{"title":3109,"links":3110},"Contact Us",[3111,3114,3116,3118,3123,3128,3133],{"text":3112,"config":3113},"Contact sales",{"href":2964,"dataGaName":2644,"dataGaLocation":3074},{"text":2967,"config":3115},{"href":2969,"dataGaName":2970,"dataGaLocation":3074},{"text":2972,"config":3117},{"href":2974,"dataGaName":2975,"dataGaLocation":3074},{"text":3119,"config":3120},"Status",{"href":3121,"dataGaName":3122,"dataGaLocation":3074},"https://status.gitlab.com/","status",{"text":3124,"config":3125},"Terms of use",{"href":3126,"dataGaName":3127,"dataGaLocation":3074},"/terms/","terms of use",{"text":3129,"config":3130},"Privacy statement",{"href":3131,"dataGaName":3132,"dataGaLocation":3074},"/privacy/","privacy statement",{"text":3134,"config":3135},"Cookie preferences",{"dataGaName":3136,"dataGaLocation":3074,"id":3137,"isOneTrustButton":2609},"cookie preferences","ot-sdk-btn",{"title":2681,"links":3139,"subMenu":3148},[3140,3144],{"text":3141,"config":3142},"DevSecOps platform",{"href":2663,"dataGaName":3143,"dataGaLocation":3074},"devsecops platform",{"text":3145,"config":3146},"AI-Assisted Development",{"href":2670,"dataGaName":3147,"dataGaLocation":3074},"ai-assisted development",[3149],{"title":3150,"links":3151},"Topics",[3152,3157,3162,3167,3172,3176,3181,3186],{"text":3153,"config":3154},"CICD",{"href":3155,"dataGaName":3156,"dataGaLocation":3074},"/topics/ci-cd/","cicd",{"text":3158,"config":3159},"GitOps",{"href":3160,"dataGaName":3161,"dataGaLocation":3074},"/topics/gitops/","gitops",{"text":3163,"config":3164},"DevOps",{"href":3165,"dataGaName":3166,"dataGaLocation":3074},"/topics/devops/","devops",{"text":3168,"config":3169},"Version Control",{"href":3170,"dataGaName":3171,"dataGaLocation":3074},"/topics/version-control/","version control",{"text":2622,"config":3173},{"href":3174,"dataGaName":3175,"dataGaLocation":3074},"/topics/devsecops/","devsecops",{"text":3177,"config":3178},"Cloud Native",{"href":3179,"dataGaName":3180,"dataGaLocation":3074},"/topics/cloud-native/","cloud native",{"text":3182,"config":3183},"AI for Coding",{"href":3184,"dataGaName":3185,"dataGaLocation":3074},"/topics/devops/ai-for-coding/","ai for coding",{"text":3187,"config":3188},"Agentic AI",{"href":3189,"dataGaName":3190,"dataGaLocation":3074},"/topics/agentic-ai/","agentic ai",{"title":3192,"links":3193},"Solutions",[3194,3196,3198,3203,3207,3210,3214,3217,3219,3222,3225,3230],{"text":2724,"config":3195},{"href":2719,"dataGaName":2724,"dataGaLocation":3074},{"text":2713,"config":3197},{"href":2697,"dataGaName":2698,"dataGaLocation":3074},{"text":3199,"config":3200},"Agile development",{"href":3201,"dataGaName":3202,"dataGaLocation":3074},"/solutions/agile-delivery/","agile delivery",{"text":3204,"config":3205},"SCM",{"href":2709,"dataGaName":3206,"dataGaLocation":3074},"source code management",{"text":3153,"config":3208},{"href":2702,"dataGaName":3209,"dataGaLocation":3074},"continuous integration & delivery",{"text":3211,"config":3212},"Value stream management",{"href":2752,"dataGaName":3213,"dataGaLocation":3074},"value stream management",{"text":3158,"config":3215},{"href":3216,"dataGaName":3161,"dataGaLocation":3074},"/solutions/gitops/",{"text":2762,"config":3218},{"href":2765,"dataGaName":2766,"dataGaLocation":3074},{"text":3220,"config":3221},"Small business",{"href":2771,"dataGaName":2772,"dataGaLocation":3074},{"text":3223,"config":3224},"Public sector",{"href":2777,"dataGaName":2778,"dataGaLocation":3074},{"text":3226,"config":3227},"Education",{"href":3228,"dataGaName":3229,"dataGaLocation":3074},"/solutions/education/","education",{"text":3231,"config":3232},"Financial services",{"href":3233,"dataGaName":3234,"dataGaLocation":3074},"/solutions/finance/","financial services",{"title":2785,"links":3236},[3237,3239,3241,3243,3246,3248,3251,3253,3255,3257,3259,3261,3263,3265],{"text":2798,"config":3238},{"href":2800,"dataGaName":2801,"dataGaLocation":3074},{"text":2803,"config":3240},{"href":2805,"dataGaName":2806,"dataGaLocation":3074},{"text":2808,"config":3242},{"href":2810,"dataGaName":2811,"dataGaLocation":3074},{"text":2813,"config":3244},{"href":2815,"dataGaName":3245,"dataGaLocation":3074},"docs",{"text":2836,"config":3247},{"href":2838,"dataGaName":2839,"dataGaLocation":3074},{"text":3249,"config":3250},"What's new",{"href":2896,"dataGaName":2897,"dataGaLocation":3074},{"text":2831,"config":3252},{"href":2833,"dataGaName":2834,"dataGaLocation":3074},{"text":2850,"config":3254},{"href":2852,"dataGaName":2853,"dataGaLocation":3074},{"text":2858,"config":3256},{"href":2860,"dataGaName":2861,"dataGaLocation":3074},{"text":2863,"config":3258},{"href":2865,"dataGaName":2866,"dataGaLocation":3074},{"text":2868,"config":3260},{"href":2870,"dataGaName":2871,"dataGaLocation":3074},{"text":2873,"config":3262},{"href":2875,"dataGaName":2876,"dataGaLocation":3074},{"text":2878,"config":3264},{"href":2880,"dataGaName":2881,"dataGaLocation":3074},{"text":2883,"config":3266},{"href":2885,"dataGaName":2886,"dataGaLocation":3074},{"title":2899,"links":3268},[3269,3271,3273,3275,3277,3279,3283,3288,3290,3292,3294],{"text":2907,"config":3270},{"href":2909,"dataGaName":2901,"dataGaLocation":3074},{"text":2912,"config":3272},{"href":2914,"dataGaName":2915,"dataGaLocation":3074},{"text":2920,"config":3274},{"href":2922,"dataGaName":2923,"dataGaLocation":3074},{"text":2925,"config":3276},{"href":2927,"dataGaName":2928,"dataGaLocation":3074},{"text":2930,"config":3278},{"href":2932,"dataGaName":2933,"dataGaLocation":3074},{"text":3280,"config":3281},"Sustainability",{"href":3282,"dataGaName":3280,"dataGaLocation":3074},"/sustainability/",{"text":3284,"config":3285},"Diversity, inclusion and belonging (DIB)",{"href":3286,"dataGaName":3287,"dataGaLocation":3074},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":2935,"config":3289},{"href":2937,"dataGaName":2938,"dataGaLocation":3074},{"text":2945,"config":3291},{"href":2947,"dataGaName":2948,"dataGaLocation":3074},{"text":2950,"config":3293},{"href":2952,"dataGaName":2953,"dataGaLocation":3074},{"text":3295,"config":3296},"Modern Slavery Transparency Statement",{"href":3297,"dataGaName":3298,"dataGaLocation":3074},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":3300},[3301,3304,3307],{"text":3302,"config":3303},"Terms",{"href":3126,"dataGaName":3127,"dataGaLocation":3074},{"text":3305,"config":3306},"Cookies",{"dataGaName":3136,"dataGaLocation":3074,"id":3137,"isOneTrustButton":2609},{"text":3308,"config":3309},"Privacy",{"href":3131,"dataGaName":3132,"dataGaLocation":3074},[3311],{"id":3312,"title":7,"body":2608,"config":3313,"content":3315,"description":2608,"extension":3319,"meta":3320,"navigation":2609,"path":3321,"seo":3322,"stem":3323,"__hash__":3324},"blogAuthors/en-us/blog/authors/cesar-saavedra.yml",{"template":3314},"BlogAuthor",{"name":7,"config":3316},{"headshot":3317,"ctfId":3318},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659600/Blog/Author%20Headshots/csaavedra1-headshot.jpg","csaavedra1","yml",{},"/en-us/blog/authors/cesar-saavedra",{},"en-us/blog/authors/cesar-saavedra","SMqRf-z0W5m5GROz_dXGjmuIb3YaOwm_n_RfeK16GcA",[3326,3334,3342],{"title":3327,"description":3328,"heroImage":3329,"category":2604,"date":3330,"authors":3331,"slug":3333,"externalUrl":2608},"How I built a demo generator with GitLab Duo Agent Platform","Demos haven't always looked like this. Looking back over my career, here's how they have evolved. Follow the tutorial to build your own demo and agent.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1765809212/noh0mdfn9o94ry9ykura.png","2026-08-13",[3332],"Itzik Gan Baruch","agentic-click-through-demo",{"title":3335,"description":3336,"heroImage":3337,"category":2604,"date":3338,"authors":3339,"slug":3341,"externalUrl":2608},"How to govern agentic AI, MCPs, and AI code assistants","AI agents can write, push, and deploy without human review at each step. Learn a practical framework for controlling access, permissions, and audit trails.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1785337625/ifzlc2hyzaxhzmjgyymh.png","2026-07-31",[3340],"Julie Griffin","govern-agentic-ai-mcps-code-assistants",{"title":3343,"description":3344,"heroImage":3345,"category":2604,"date":3346,"authors":3347,"slug":3349,"externalUrl":2608},"Claude Opus 5 on GitLab: Reasoning built for the hard tasks","Anthropic’s Claude Opus 5 is now available on GitLab Duo Agent Platform, delivering deeper reasoning without sacrificing speed.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-07-27",[3348],"Brittany Lutz","claude-opus-5-on-gitlab-duo-agent-platform",{"promotions":3351},[3352,3365,3376,3388],{"id":3353,"categories":3354,"header":3355,"text":3356,"button":3357,"image":3362},"ai-modernization",[2604],"Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":3358,"config":3359},"Get your AI maturity score",{"href":3360,"dataGaName":3361,"dataGaLocation":2839},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":3363},{"src":3364},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":3366,"categories":3367,"header":3368,"text":3356,"button":3369,"image":3373},"devops-modernization",[2625,3175],"Are you just managing tools or shipping innovation?",{"text":3370,"config":3371},"Get your DevOps maturity score",{"href":3372,"dataGaName":3361,"dataGaLocation":2839},"/assessments/devops-modernization-assessment/",{"config":3374},{"src":3375},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":3377,"categories":3378,"header":3380,"text":3356,"button":3381,"image":3385},"security-modernization",[3379],"security","Are you trading speed for security?",{"text":3382,"config":3383},"Get your security maturity score",{"href":3384,"dataGaName":3361,"dataGaLocation":2839},"/assessments/security-modernization-assessment/",{"config":3386},{"src":3387},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":3389,"paths":3390,"header":3393,"text":3394,"button":3395,"image":3400},"github-azure-migration",[3391,3392],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":3396,"config":3397},"See how GitLab compares to GitHub",{"href":3398,"dataGaName":3399,"dataGaLocation":2839},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":3401},{"src":3375},{"header":3403,"blurb":3404,"button":3405,"secondaryButton":3410},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":3406,"config":3407},"Get your free trial",{"href":3408,"dataGaName":2639,"dataGaLocation":3409},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":3112,"config":3411},{"href":2964,"dataGaName":2644,"dataGaLocation":3409},1786803766802]