Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
67b69707
Commit
67b69707
authored
Apr 06, 2018
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation around SOURCE_DATE_EPOCH
parent
489178d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
README.md
build/README.md
+19
-0
No files found.
build/README.md
View file @
67b69707
...
@@ -107,4 +107,23 @@ In addition, there are some other tar files that are created:
...
@@ -107,4 +107,23 @@ In addition, there are some other tar files that are created:
When building final release tars, they are first staged into
`_output/release-stage`
before being tar'd up and put into
`_output/release-tars`
.
When building final release tars, they are first staged into
`_output/release-stage`
before being tar'd up and put into
`_output/release-tars`
.
## Reproducibility
`make release`
, its variant
`make quick-release`
, and Bazel all provide a
hermetic build environment which should provide some level of reproducibility
for builds.
`make`
itself is
**not**
hermetic.
The Kubernetes build environment supports the
[
`SOURCE_DATE_EPOCH`
environment
variable](https://reproducible-builds.org/specs/source-date-epoch/) specified by
the Reproducible Builds project, which can be set to a UNIX epoch timestamp.
This will be used for the build timestamps embedded in compiled Go binaries,
and maybe someday also Docker images.
One reasonable setting for this variable is to use the commit timestamp from the
tip of the tree being built; this is what the Kubernetes CI system uses. For
example, you could use the following one-liner:
```
bash
SOURCE_DATE_EPOCH
=
$(
git show
-s
--format
=
format:%ct HEAD
)
```
[

]()
[

]()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment