BuildSourceImage: looks like golang ts of RFC 3339 is special
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
977a003d16
commit
adcad3d78a
1 changed files with 5 additions and 2 deletions
|
@ -58,9 +58,9 @@ _size() {
|
||||||
stat -c "%s" "${file}" | tr -d '\n'
|
stat -c "%s" "${file}" | tr -d '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
# date timestamp in RFC 3339, to the nanosecond
|
# date timestamp in RFC 3339, to the nanosecond, but slightly golang style ...
|
||||||
_date_ns() {
|
_date_ns() {
|
||||||
date --rfc-3339=ns | tr -d '\n'
|
date --rfc-3339=ns | tr ' ' 'T' | tr -d '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
# local `mktemp -d`
|
# local `mktemp -d`
|
||||||
|
@ -947,6 +947,9 @@ main() {
|
||||||
|
|
||||||
# TODO maybe look to a directory like /usr/libexec/BuildSourceImage/drivers/ for drop-ins to run
|
# TODO maybe look to a directory like /usr/libexec/BuildSourceImage/drivers/ for drop-ins to run
|
||||||
|
|
||||||
|
_info "succesfully packed 'oci:$src_img_dir:${src_img_tag}'"
|
||||||
|
_debug "$(skopeo inspect oci:$src_img_dir:${src_img_tag})"
|
||||||
|
|
||||||
## if an output directory is provided then save a copy to it
|
## if an output directory is provided then save a copy to it
|
||||||
if [ -n "${output_dir}" ] ; then
|
if [ -n "${output_dir}" ] ; then
|
||||||
_mkdir_p "${output_dir}"
|
_mkdir_p "${output_dir}"
|
||||||
|
|
Loading…
Reference in a new issue