An open API service indexing awesome lists of open source software.

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

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