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

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

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-example

http :8080/ololo/trololo
http :8080/api/
```

## reckon version

```bash
change git remote to: "[email protected]:daggerok/jib-gradle-example.git", or

export 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)