Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Remove CREATED from bundle.json#778

Merged
zappy-shu merged 1 commit intodocker-archive-public:masterfrom
zappy-shu:remove-created-date-from-bundle
Dec 5, 2019
Merged

Remove CREATED from bundle.json#778
zappy-shu merged 1 commit intodocker-archive-public:masterfrom
zappy-shu:remove-created-date-from-bundle

Conversation

@zappy-shu
Copy link
Copy Markdown
Contributor

- What I did

Removes the created date from the bundle.json and the image ls output

This has been done to make builds more reproducable as the current solution means the App Image ID will change on each build

We will look at re-adding the created date once the underlying bundle store has been updated.

- How to verify it

Build a Docker App and:

  • Run docker app image ls: there should no longer be a CREATED column.
  • Open the image's bundle.json: there should be no custom:com.docker.app:payload:created property.

- Description for the changelog

Removes custom created date from Docker App bundle.json so as to make builds more repeatable.

- A picture of a cute animal (not mandatory)

animalissue2-1-43f2a278bdb53e2e

Removes the created date from the bundle.json and the image ls output
This has been done to make builds more reproducable as the current solution means the App Image ID will change on each build
We will look at re-adding the created date once the underlying bundle store has been updated.

Signed-off-by: Nick Adcock <nick.adcock@docker.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 4, 2019

Codecov Report

Merging #778 into master will decrease coverage by 1.48%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
- Coverage   71.82%   70.33%   -1.49%     
==========================================
  Files          67       67              
  Lines        3858     3712     -146     
==========================================
- Hits         2771     2611     -160     
- Misses        739      757      +18     
+ Partials      348      344       -4
Impacted Files Coverage Δ
internal/commands/image/list.go 81.53% <ø> (-3.08%) ⬇️
internal/packager/custom.go 72.09% <100%> (-1.25%) ⬇️
internal/commands/image/formatter.go 85.96% <100%> (-1.14%) ⬇️
internal/commands/build/build.go 60% <0%> (-19.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d198096...79189e7. Read the comment docs.

@zappy-shu zappy-shu changed the title [WIP] Remove CREATED from bundle.json Remove CREATED from bundle.json Dec 4, 2019
@zappy-shu zappy-shu changed the title Remove CREATED from bundle.json [WIP] Remove CREATED from bundle.json Dec 4, 2019
@zappy-shu zappy-shu changed the title [WIP] Remove CREATED from bundle.json Remove CREATED from bundle.json Dec 4, 2019
Copy link
Copy Markdown
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zappy-shu zappy-shu merged commit 6df0ec9 into docker-archive-public:master Dec 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants