Skip to content

Commit 05ef875

Browse files
authored
Updates README for OCI support. (GoogleContainerTools#124)
* Updates README for OCI support. * Changes to version v0.1.4.
1 parent 658c692 commit 05ef875

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## What is Jib?
99

10-
Jib is a Maven plugin for building Docker<!-- and OCI--> images for your Java applications.
10+
Jib is a Maven plugin for building Docker and OCI images for your Java applications.
1111

1212
## Goals
1313

@@ -22,7 +22,6 @@ Jib is a Maven plugin for building Docker<!-- and OCI--> images for your Java ap
2222
These features are not currently supported but will be added in later releases.
2323

2424
* Gradle plugin
25-
* Building OCI images
2625
* Support for WAR format
2726

2827
## Quickstart
@@ -35,7 +34,7 @@ In your Maven Java project, add the plugin to your `pom.xml`:
3534
<plugin>
3635
<groupId>com.google.cloud.tools</groupId>
3736
<artifactId>jib-maven-plugin</artifactId>
38-
<version>0.1.2</version>
37+
<version>0.1.4</version>
3938
<configuration>
4039
<registry>myregistry</registry>
4140
<repository>myapp</repository>
@@ -133,14 +132,16 @@ Field | Default | Description
133132
`jvmFlags`|*None*|Additional flags to pass into the JVM when running your application.
134133
`mainClass`|Uses `mainClass` from `maven-jar-plugin`|The main class to launch the application from.
135134
`enableReproducibleBuilds`|`true`|Building with the same application contents always generates the same image. Note that this does *not* preserve file timestamps and ownership.
136-
<!--`imageFormat`|`Docker`|Use `OCI` to build an [OCI container image](https://www.opencontainers.org/).-->
135+
`imageFormat`|`Docker`|Use `OCI` to build an [OCI container image](https://www.opencontainers.org/).
137136

138137
### Example
139138

140139
In this configuration, the image is:
141140
* Built from a base of `openjdk:alpine` (pulled from Docker Hub)
142141
* Pushed to `localhost:5000/my-image:built-with-jib`
143142
* Runs by calling `java -Xms512m -Xdebug -Xmy:flag=jib-rules -cp app/libs/*:app/resources:app/classes mypackage.MyApp`
143+
* Reproducible
144+
* Built as OCI format
144145

145146
```xml
146147
<configuration>
@@ -157,7 +158,8 @@ In this configuration, the image is:
157158
<jvmFlag>-Xmy:flag=jib-rules</jvmFlag>
158159
</jvmFlags>
159160
<mainClass>mypackage.MyApp</mainClass>
160-
<enableReproducibleBuilds>false</enableReproducibleBuilds>
161+
<enableReproducibleBuilds>true</enableReproducibleBuilds>
162+
<imageFormat>OCI</imageFormat>
161163
</configuration>
162164
```
163165

@@ -235,7 +237,7 @@ See [rules_docker](https://github.com/bazelbuild/rules_docker) for a similar exi
235237

236238
### What image format does Jib use?
237239

238-
Jib currently builds into the [Docker V2.2](https://docs.docker.com/registry/spec/manifest-v2-2/) image format. [OCI image format](https://github.com/opencontainers/image-spec) support will be added a future release.
240+
Jib currently builds into the [Docker V2.2](https://docs.docker.com/registry/spec/manifest-v2-2/) image format or [OCI image format](https://github.com/opencontainers/image-spec). See [Extended Usage](#extended-usage) for the `imageFormat` configuration.
239241

240242
### Can I use other authentication methods besides a Docker credential helper?
241243

0 commit comments

Comments
 (0)