https://github.com/kunchalavikram1427/dockerizing-java-apps-using-jib
https://github.com/kunchalavikram1427/dockerizing-java-apps-using-jib
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kunchalavikram1427/dockerizing-java-apps-using-jib
- Owner: kunchalavikram1427
- Created: 2023-05-10T17:58:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-10T18:53:02.000Z (over 2 years ago)
- Last Synced: 2025-03-05T04:43:03.394Z (7 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Maven Application
## Using Jib
### Using inline commands
For Jar Packaging
```
mvn compile com.google.cloud.tools:jib-maven-plugin:3.3.1:build -Djib.to.auth.username= -Djib.to.auth.password= -Dimage=
```
For WAR Packaging
```
mvn package com.google.cloud.tools:jib-maven-plugin:3.3.1:build -Djib.to.auth.username= -Djib.to.auth.password= -Dimage=
```### Using Plugins in POM file
```...
...
com.google.cloud.tools
jib-maven-plugin
3.3.1
myimage
...
...```
### References
- https://cloud.google.com/blog/products/application-development/introducing-jib-build-java-docker-images-better
- https://github.com/GoogleContainerTools/jib
- https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#quickstart
- https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#authentication-methods
- https://maven.apache.org/
- https://maven.apache.org/pom.html
- https://maven.apache.org/settings.html
- https://github.com/GoogleContainerTools/jib/issues/3214