Add more info to the /etc/image_info
Change-Id: I956985410f55293c998e75c9fa8960e2b9106d45
This commit is contained in:
parent
e09a032257
commit
7c3c53c375
|
@ -35,6 +35,7 @@
|
||||||
name: registry
|
name: registry
|
||||||
image: registry:2
|
image: registry:2
|
||||||
state: started
|
state: started
|
||||||
|
restart_policy: "always"
|
||||||
published_ports:
|
published_ports:
|
||||||
- 172.17.0.1:5000:5000
|
- 172.17.0.1:5000:5000
|
||||||
become: True
|
become: True
|
||||||
|
|
|
@ -6,6 +6,7 @@ INFO_DIR="/etc/image_info"
|
||||||
mkdir -p $INFO_DIR
|
mkdir -p $INFO_DIR
|
||||||
PACKAGES_INFO="${INFO_DIR}/packages.txt"
|
PACKAGES_INFO="${INFO_DIR}/packages.txt"
|
||||||
PIP_INFO="${INFO_DIR}/pip.txt"
|
PIP_INFO="${INFO_DIR}/pip.txt"
|
||||||
|
PROJECT_INFO="${INFO_DIR}/project.txt"
|
||||||
|
|
||||||
case ${distro} in
|
case ${distro} in
|
||||||
ubuntu)
|
ubuntu)
|
||||||
|
@ -21,3 +22,13 @@ case ${distro} in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pip freeze > $PIP_INFO
|
pip freeze > $PIP_INFO
|
||||||
|
cat > ${PROJECT_INFO} <<EOF
|
||||||
|
PROJECT=${PROJECT}
|
||||||
|
PROJECT_REPO=${PROJECT_REPO}
|
||||||
|
PROJECT_REF=${PROJECT_REF}
|
||||||
|
PROJECT_RELEASE=${PROJECT_RELEASE}
|
||||||
|
EOF
|
||||||
|
pushd /tmp/${PROJECT}
|
||||||
|
echo "========"
|
||||||
|
git log -1 >> ${PROJECT_INFO}
|
||||||
|
popd
|
||||||
|
|
Loading…
Reference in New Issue