Skip to content

Conversation

mneagul
Copy link

@mneagul mneagul commented Oct 21, 2021

This pull request replaces the unmaintained dockerfile-maven-plugin with the jib-maven-plugin.

The advantage of the switch is that the docker container can be built without having a docker daemon available. This covers scenarios where the build is managed by gitlab in Kubernetes, by example

The container can be built with:

mvn package jib:build

The repository and tag can be changed with:

mvn package jib:build -Djib.to.image=mneagul/staccato-test:test

The push credentials can by setting additionalys:

  • -Djib.to.auth.username=$USERNAME
  • -Djib.to.auth.password=$PASSWORD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant