Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from GoogleContainerTools:master #675

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions jib-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
All notable changes to this project will be documented in this file.

## [unreleased]

### Added
-

### Changed
-

### Fixed
- fix: support parsing manifest JSON containing `LayerSources:` from latest Docker. ([#4171](https://github.com/GoogleContainerTools/jib/pull/4171))

## 0.25.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.tools.jib.docker.json;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.cloud.tools.jib.json.JsonTemplate;
import com.google.common.annotations.VisibleForTesting;
Expand All @@ -27,7 +28,7 @@
* a tag is missing, it explicitly should use "latest".
*
* <p>Note that this is a template for a single Manifest entry, while the entire Docker Manifest
* should be {@code List<DockerLoadManifestEntryTemplate>}.
* should be {@code List<DockerManifestEntryTemplate>}.
*
* <p>Example manifest entry JSON:
*
Expand All @@ -46,6 +47,7 @@
* @see <a href="https://github.com/moby/moby/blob/master/image/tarexport/load.go">Docker load
* source</a>
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class DockerManifestEntryTemplate implements JsonTemplate {

@JsonProperty("Config")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void testToJson() throws URISyntaxException, IOException {
@Test
public void testFromJson() throws URISyntaxException, IOException {
// Loads the expected JSON string.
Path jsonFile = Paths.get(Resources.getResource("core/json/loadmanifest.json").toURI());
Path jsonFile = Paths.get(Resources.getResource("core/json/loadmanifest2.json").toURI());
String sourceJson = new String(Files.readAllBytes(jsonFile), StandardCharsets.UTF_8);
DockerManifestEntryTemplate template =
new ObjectMapper().readValue(sourceJson, DockerManifestEntryTemplate[].class)[0];
Expand Down
1 change: 1 addition & 0 deletions jib-core/src/test/resources/core/json/loadmanifest2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"Config":"config.json","RepoTags":["testregistry/testrepo:testtag"],"Layers":["layer1.tar.gz","layer2.tar.gz","layer3.tar.gz"],"LayerSources":{}}]
3 changes: 1 addition & 2 deletions jib-gradle-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ All notable changes to this project will be documented in this file.
-

### Fixed
-
- fix: support parsing manifest JSON containing `LayerSources:` from latest Docker. ([#4171](https://github.com/GoogleContainerTools/jib/pull/4171))

## 3.4.0

Expand Down Expand Up @@ -93,7 +93,6 @@ Thanks to our community contributors @wwadge, @oliver-brm, @rquinio and @gsquare

- Fixed setting image format in Kotlin ([#3593](https://github.com/GoogleContainerTools/jib/pull/3593)).


## 3.2.0

### Added
Expand Down
3 changes: 1 addition & 2 deletions jib-maven-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ All notable changes to this project will be documented in this file.
-

### Fixed
-
- fix: support parsing manifest JSON containing `LayerSources:` from latest Docker. ([#4171](https://github.com/GoogleContainerTools/jib/pull/4171))

## 3.4.0

Expand Down Expand Up @@ -75,7 +75,6 @@ Thanks to our community contributors @wwadge, @oliver-brm, @rquinio and @gsquare

- Upgraded jackson-databind to 2.13.2.2 ([#3612](https://github.com/GoogleContainerTools/jib/pull/3612)).


## 3.2.0

### Added
Expand Down
Loading