https://github.com/daggerok/jib-gradle-example
https://github.com/daggerok/jib-gradle-example
gradle gradle-kotlin-dsl jib jib-gradle jib-plugin jig-gradle-plugin spring-boot-gradle-kotlin-dsl spring-boot-gradle-plugin-2
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daggerok/jib-gradle-example
- Owner: daggerok
- Created: 2020-03-29T00:38:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T01:48:37.000Z (about 5 years ago)
- Last Synced: 2025-01-10T00:44:31.775Z (4 months ago)
- Topics: gradle, gradle-kotlin-dsl, jib, jib-gradle, jib-plugin, jig-gradle-plugin, spring-boot-gradle-kotlin-dsl, spring-boot-gradle-plugin-2
- Language: Kotlin
- Size: 77.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jib it
jib gradle plugin```bash
# build and push without docker!
.gradlew clean jib# turn on docker and test it!
docker rmi -f daggerok/daggerok-jib-gradle-example
docker run --rm -it -p 8080:8080 -e GREETING_MESSAGE='привет!' daggerok/daggerok-jib-gradle-examplehttp :8080/ololo/trololo
http :8080/api/
```## reckon version
```bash
change git remote to: "[email protected]:daggerok/jib-gradle-example.git", orexport GIT_PASSWORD=...
export GIT_AUTH="-Dorg.ajoberstar.grgit.auth.username=daggerok -Dorg.ajoberstar.grgit.auth.password=${GIT_PASSWORD}"./gradlew ${GIT_AUTH} reckonTagPush -Preckon.stage=final
```## advanced
```bash
# git add . ; justcommit ; ./gradlew ${GIT_AUTH} reckonTagPush -Preckon.stage=final ; git psom --tags ; ./gradlew clean jib
docker run --rm -it -p 8080:8080 -e GREETING_MESSAGE='привiт!' daggerok/daggerok-jib-gradle-example:`./gradlew -q version`
```## resources
* [YouTube: Best Practices to Spring to Kubernetes Easier and Faster by Ray Tsang](https://www.youtube.com/watch?v=c16oOeTfFXM)
* [Official Gradle documentation](https://docs.gradle.org)
* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/gradle-plugin/reference/html/)
* [Coroutines section of the Spring Framework Documentation](https://docs.spring.io/spring/docs/5.2.5.RELEASE/spring-framework-reference/languages.html#coroutines)
* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle)