Skip to content
Snippets Groups Projects
Commit 5b4c747d authored by Ritesh Raj Sarraf's avatar Ritesh Raj Sarraf Committed by Ritesh Raj Sarraf
Browse files

Add image version metadata in docker image


This is needed by the ade tool, which relies on '/etc/image_version' to determine
in what environment it is running

Signed-off-by: default avatarRitesh Raj Sarraf <ritesh.sarraf@collabora.com>
parent f4785a1d
No related branches found
No related tags found
2 merge requests!35Users/ritesh/docker enablement 1806,!16Add image version metadata in docker image
......@@ -2,6 +2,7 @@
{{- $mirror := or .mirror "https://repositories.apertis.org/apertis/" -}}
{{- $suite := or .suite "18.03" -}}
{{- $ospack := or .ospack "apertis.tar.gz" -}}
{{- $timestamp := or .timestamp "00000000.0" -}}
architecture: {{ $architecture }}
......@@ -32,6 +33,11 @@ actions:
chroot: true
script: scripts/replace-tar-coreutils-for-build.sh
- action: run
description: "Setting up image version metadata"
chroot: true
script: scripts/setup_image_version.chroot apertis {{ $suite }} {{ $timestamp }} collabora
- action: pack
compression: gz
file: {{ $ospack }}
#!/bin/sh
set -e
distro=$1
rel=$2
timestamp=$3
vendor=$4
echo "${distro} ${rel} ${timestamp} ${vendor}" > /etc/image_version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment