Save gitsha for later use in docker container

This commit is contained in:
Freenerd 2017-04-28 16:20:37 +02:00 committed by Patrick Niklaus
parent 0e39aa9488
commit 2021c30805

View File

@ -27,6 +27,8 @@ RUN NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
\
echo "Building OSRM ${DOCKER_TAG}" && \
cd /src && \
git show --format="%H" | head -n1 > /opt/OSRM_GITSHA && \
echo "Building OSRM gitsha ${cat /opt/OSRM_GITSHA}" && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DENABLE_LTO=On .. && \