Show gitlog for stacklight repo when building docker image
Change-Id: Ic0e2b2f99a67f4288d71f85e8a9d49c6e2a116b1
Related-prod: #PROD-30693(PROD:30693)
(cherry picked from commit 394f6bcde152b1dcc22813e4396be285d04f82a0)
diff --git a/Dockerfile b/Dockerfile
index 41aaecd..e358717 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -51,10 +51,12 @@
&& virtualenv --system-site-packages venv \
&& . venv/bin/activate \
&& git clone -b $SL_TEST_BRANCH $SL_TEST_REPO \
- && pip install ./stacklight-pytest \
- && pip install -r stacklight-pytest/requirements.txt \
+ && pushd stacklight-pytest \
+ && git log -n1 \
+ && pip install . \
+ && pip install -r requirements.txt \
&& deactivate \
- && popd \
+ && popd && popd \
# Cleanup
&& apt-get -y purge libx11-data xauth libxmuu1 libxcb1 libx11-6 libxext6 ppp pppconfig pppoeconf popularity-contest cpp gcc g++ libssl-doc && \
apt-get -y autoremove; apt-get -y clean ; rm -rf /root/.cache; rm -rf /var/lib/apt/lists/* && \