-
Notifications
You must be signed in to change notification settings - Fork 788
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
buildah images --json createatraw subsecond precision makes jq processing hard #3478
Comments
$ podman images --format json Would that work for you? IE Would adding Created: EPOCH Seconds work? |
EPOCH Seconds would be perfect. |
rhatdan
added a commit
to rhatdan/buildah
that referenced
this issue
Aug 26, 2021
Currently buildah images does not have an easy way to get the epoch creation time. This field is available in `podman images` as the Created field. Adding to buildah images to make it consistent. Fixes: containers#3478 Signed-off-by: Daniel J Walsh <[email protected]>
rhatdan
added a commit
to rhatdan/buildah
that referenced
this issue
Aug 26, 2021
Currently buildah images does not have an easy way to get the epoch creation time. This field is available in `podman images` as the Created field. Adding to buildah images to make it consistent. Fixes: containers#3478 Signed-off-by: Daniel J Walsh <[email protected]>
Thank you @rhatdan. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Attempting to script operations based on buildah images --json with regard to .createatraw (added #1266) using jq as a shell based tool gets hard. The ability for jq to be extended to support subsecond precision is also hard due to glibc functions not supporting parsing of it.
Steps to reproduce the issue:
ref: jq manual - https://stedolan.github.io/jq/manual/s
Describe the results you received:
The subsecond precision isn't there in jq. jq uses strptime which also don't have a field for subsecond parsing.
Describe the results you expected:
The .createdateraw without the subscond would be easy to parse rather than the regex that I've used in MariaDB/mariadb.org-tools@626366b
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: