X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Finstall_osm.sh;h=d5de3f51d74452b5d12c3e335d224e3274c01466;hb=131fa74b5d343b57705a3202284be33d736085e5;hp=9ba080ab8bd8575f795fa00b080b36c568183895;hpb=63ac902b026a6007cc9f3ccfeaeecd5251b3edbb;p=osm%2Fdevops.git diff --git a/installers/install_osm.sh b/installers/install_osm.sh index 9ba080ab..d5de3f51 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -533,7 +533,7 @@ function install_juju() { echo "Installing juju" sudo snap install juju --classic sudo dpkg-reconfigure -p medium lxd - juju bootstrap localhost osm + sg lxd -c "juju bootstrap localhost osm" echo "Finished installation of juju" } @@ -554,6 +554,8 @@ function generate_docker_images() { docker build ${LWTEMPDIR}/RO/lcm -t osm/lcm || ! echo "cannot build LCM docker image" >&2 git -C ${LWTEMPDIR} clone https://github.com/superfluidity/osm-light-ui.git docker build ${LWTEMPDIR}/osm-light-ui -t osm/light-ui -f ${LWTEMPDIR}/osm-light-ui/code/docker/Dockerfile +# git -C ${LWTEMPDIR} clone https://osm.etsi.org/gerrit/osm/LW-UI +# docker build ${LWTEMPDIR}/LW-UI -t osm/light-ui -f ${LWTEMPDIR}/LW-UI/Dockerfile EONG echo "Finished generation of docker images" } @@ -561,7 +563,7 @@ EONG function generate_docker_env_files() { echo "Generating docker env files" OSMLCM_VCA_HOST=`juju show-controller|grep api-endpoints|awk -F\' '{print $2}'|awk -F\: '{print $1}'` - OSMLCM_VCA_SECRET=`grep password /home/ubuntu/.local/share/juju/accounts.yaml |awk '{print $2}'` + OSMLCM_VCA_SECRET=`grep password ${HOME}/.local/share/juju/accounts.yaml |awk '{print $2}'` MYSQL_ROOT_PASSWORD=`date +%s | sha256sum | base64 | head -c 32` echo "OSMLCM_VCA_HOST=${OSMLCM_VCA_HOST}" |sudo tee ${OSM_DEVOPS}/installers/docker/lcm.env echo "OSMLCM_VCA_SECRET=${OSMLCM_VCA_SECRET}" |sudo tee -a ${OSM_DEVOPS}/installers/docker/lcm.env