Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to jib-maven-plugin #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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