Remove Git repo data from NoVNC and SPICE HTML5 dirs - Story: 2010049

Change-Id: I9f8a81ed160a5d09b01e846b091d5bbb2bee1656
This commit is contained in:
Jeremy Lamb 2022-05-23 15:24:17 +12:00
parent eb95b4adab
commit fe9caeebbb
1 changed files with 10 additions and 5 deletions

View File

@ -9,12 +9,17 @@ set -ex
# these html files into the container. In total this adds less than a MB
# to the image size
mkdir /usr/share/novnc
git clone -b ${NOVNC_REF} --depth 1 ${NOVNC_REPO} /usr/share/novnc
NOVNC_DIR=/usr/share/novnc
SPICE_DIR=/usr/share/spice-html5
mkdir ${NOVNC_DIR}
git clone -b ${NOVNC_REF} --depth 1 ${NOVNC_REPO} ${NOVNC_DIR}
rm -rf ${NOVNC_DIR}/.git*
if [[ ! -f /usr/share/novnc/vnc_auto.html ]]; then
# novnc >= 1.0.0 is installed
ln -s vnc_lite.html /usr/share/novnc/vnc_auto.html
ln -s vnc_lite.html ${NOVNC_DIR}/vnc_auto.html
fi
mkdir /usr/share/spice-html5
git clone -b ${SPICE_REF} --depth 1 ${SPICE_REPO} /usr/share/spice-html5
mkdir ${SPICE_DIR}
git clone -b ${SPICE_REF} --depth 1 ${SPICE_REPO} ${SPICE_DIR}
rm -rf ${SPICE_DIR}/.git*