![]() I was following the instructions via GitLab and Spring Boot documentation, but cant seem to identify my problem. mvn spring-boot:build-image -DCI_REGISTRY=$CI_REGISTRY -DCI_REGISTRY_USER=$CI_REGISTRY_USER -DCI_REGISTRY_PASSWORD=$CI_REGISTRY_PASSWORD =SpringBootImage_$ =true My maven CLI call in the Pipeline/Job uses the GitLab registry variables : docker image job: Properties defined in the POM with no value (Will be filled in by CLI call) : I configured the maven plugin in the project pom to use properties for auth, which will be overwritten by the CLI in my CI/CD Job as follows: In case you are thinking about the difference between an image and container then please note that a running image is called container. I'm using a maven:3.6.3-jdk-11-slim image for the job with the docker:dind service to have access to a docker daemon.īuilding the image runs fine, but publishing fails. The maven plugin for docker fabric8io/docker-maven-plugin helps us in building docker images and running containers. ![]() When I set it to 'Host' or 'Bridge' adapter, the container is using the OMV hosts IP. Aug 12th 2018 1 Hello Im trying to make my docker containers run with an IP on the local network () but no success. OMV 4.x resolved nitpwn Aug 12th 2018 nitpwn. My problem is, that I can't get the auth to work. Docker Plugin - IP address for local network. Spring Boot recently added the build-image goal to its maven plugin which also has the ability to publish the image to a registry. I want to package it in a docker image and publish that to the GitLab registry to use it later on. I'm currently developing a GitLab CI/CD pipeline which compiles, tests and builds a standard Spring Boot application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |