Comments (3)
As long as the build doesn't fail, it's OK to leave it empty.
// PreRelease is set during the build
PreRelease = ""
// GitCommit is set during the build
GitCommit = "HEAD"
// BuildTime is set during the build
BuildTime = "<unknown>"
It looks weird, but 70's seems to be "industry standard".
Like podman:
"GitCommit": "",
"BuiltTime": "Thu Jan 1 01:00:00 1970",
"Built": 0,
The current build works OK when git is missing, but fails (wrong repo!) when the build files are using git themselves.
So in order to not have the build pick up the version of the OS or whatever, it is more explicit to provide the information.
from cri-dockerd.
So these values are recorded, and provided:
REVISION=$(git log -1 --pretty=%H)
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
To replace the default "HEAD" and "<unknown>".
eb0c48ef49856f7d098ec005ddebcae197e08e49
1641267182
from cri-dockerd.
REVISION
, SOURCE_DATE_EPOCH
, and VERSION
can now be set as environment variables or build-time options to make
.
There's a --buildinfo
flag to cri-dockerd
which will show what they were set to.
from cri-dockerd.
Related Issues (20)
- Update Go Versions HOT 1
- May I ask which version should be downloaded without Debian12? I don't think Bookworm is available HOT 9
- Version correspondence between CRI Docker and Docker Engine, Kubernetes
- cannot find package "." in HOT 5
- Unable to override k8s.gcr.io/pause:3.6 image during cri-dockerd setup HOT 4
- ListPodSandboxStats returns error HOT 1
- Request for Docker API 1.44 support update HOT 4
- `libdocker.GenerateMountBindings()`: Disable RRO mounts when bumping up the Docker API client package to v25 (API v1.44) HOT 6
- To install, on a Linux system that uses systemd, and already has Docker Engine installed HOT 11
- Windows: cri-dockerd keeps crashing
- Drop the support for CRI v1alpha2 HOT 1
- No workarounds for logging spam "docker does not support reopening container log files", when not using json-file logging driver HOT 1
- When deleting a container in exit status, kubelet will have an err log
- BestEffort pods are using swap HOT 5
- Calico CNI installation fails with cridocker v0.3.12 HOT 23
- packaging deb for noble numbat Ubuntu 24.04 LTS HOT 5
- Add dependabot for the release/0.3 branch
- when cri-dockerd can support Red Hat Enterprise Linux centos 9, which kernel version is 5.14.0-362.8.1.el9_3.x86_64 HOT 2
- Pulling image could fail when the image is large
- Remove end-of-life packaging distributions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cri-dockerd.