Custom Entrypoint Extension for Jib Plugin

Allows customizing entrypoint.

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.artemkaxboy
ArtifactId

ArtifactId

jib-custom-entrypoint-extension-gradle
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Custom Entrypoint Extension for Jib Plugin
Allows customizing entrypoint.
Project URL

Project URL

https://github.com/artemkaxboy/jib-custom-entrypoint-extension
Source Code Management

Source Code Management

https://github.com/artemkaxboy/jib-custom-entrypoint-extension

Download jib-custom-entrypoint-extension-gradle

How to add to project

<!-- https://jarcasting.com/artifacts/com.artemkaxboy/jib-custom-entrypoint-extension-gradle/ -->
<dependency>
    <groupId>com.artemkaxboy</groupId>
    <artifactId>jib-custom-entrypoint-extension-gradle</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.artemkaxboy/jib-custom-entrypoint-extension-gradle/
implementation 'com.artemkaxboy:jib-custom-entrypoint-extension-gradle:0.1.0'
// https://jarcasting.com/artifacts/com.artemkaxboy/jib-custom-entrypoint-extension-gradle/
implementation ("com.artemkaxboy:jib-custom-entrypoint-extension-gradle:0.1.0")
'com.artemkaxboy:jib-custom-entrypoint-extension-gradle:jar:0.1.0'
<dependency org="com.artemkaxboy" name="jib-custom-entrypoint-extension-gradle" rev="0.1.0">
  <artifact name="jib-custom-entrypoint-extension-gradle" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.artemkaxboy', module='jib-custom-entrypoint-extension-gradle', version='0.1.0')
)
libraryDependencies += "com.artemkaxboy" % "jib-custom-entrypoint-extension-gradle" % "0.1.0"
[com.artemkaxboy/jib-custom-entrypoint-extension-gradle "0.1.0"]

Dependencies

test (3)

Group / Artifact Type Version
com.google.cloud.tools : jib-gradle-plugin-extension-api jar 0.4.0
junit : junit jar 4.13.1
org.mockito : mockito-core jar 3.4.6

Project Modules

There are no modules declared in this project.

Jib Custom Entrypoint Extension

A general-purpose extension that enables to customize an image's entrypoint by adding prefix/suffix to the original entrypoint or override it completely.

How it works

Extensions allow one to customize Google Jib Docker image entrypoint by adding specific prefixes/suffixes to the original one and therefore to avoid overriding classpath and main-class.

Example:

Default entrypoint: java -cp /app/resources:/app/classes:/app/libs/* Application after adding prefix ./wait-for-it.sh google.com:80 -- becomes ./wait-for-it.sh google.com:80 -- java -cp /app/resources:/app/classes:/app/libs/* Application which makes health-check requests before running the application.

Extensions and Examples

Gradle

Extension Documentation/Source code

Sample projects: Kotlin/Java

Maven

Extension Documentation/Source code

Sample project: Java

Versions

Version
0.1.0
0.0.1