Files
loci/scripts/install_nova_console.sh
Sam Yaple 324fe7a4aa Add a fix for novnc 1.0.0
Patch is pretty self explainitory

Change-Id: I802f4876caa0032a32f3caeac044d5265105edc7
2018-03-29 20:21:22 -04:00

21 lines
771 B
Bash
Executable File

#!/bin/bash
set -ex
# NOTE(SamYaple): Nova console is a special case. The html files needed to make
# this work exist only upstream. The "packaged" versions of these come only
# from openstack specific repos and they have hard requirements to a massive
# amount of packages. Installing from "source" is the only way to get 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
if [[ ! -f /usr/share/novnc/vnc_auto.html ]]; then
# NOTE(SamYaple): novnc >= 1.0.0 is installed
ln -s vnc_lite.html /usr/share/novnc/vnc_auto.html
fi
mkdir /usr/share/spice-html5
git clone -b ${SPICE_REF} --depth 1 ${SPICE_REPO} /usr/share/spice-html5