f45bfd913d
Refactor snap to work with core18. Giving the snapcraft.yaml a base property helps tremendously with the efficiency of the build process, and I believe that it puts us in a better position to reliably support non Ubuntu distros going forward. This also bases us on long supported bionic libraries, and gives us a nice place to work from as we add Python 3 and Stein support, as well as general polish and fixes.
31 lines
888 B
Bash
Executable File
31 lines
888 B
Bash
Executable File
#!/bin/bash
|
|
##############################################################################
|
|
#
|
|
# This is a "very basic" test script for Microstack. It will install
|
|
# the microstack snap on a vm, and dump you into a shell on the vm for
|
|
# troubleshooting.
|
|
#
|
|
# The multipass snap and the petname debian package must be installed
|
|
# on the host system in order to run this test.
|
|
#
|
|
##############################################################################
|
|
|
|
set -ex
|
|
|
|
UPGRADE_FROM="none"
|
|
DISTRO=18.04
|
|
MACHINE=$(petname)
|
|
|
|
# Make a vm
|
|
multipass launch --cpus 2 --mem 16G $DISTRO --name $MACHINE
|
|
|
|
# Install the snap
|
|
multipass copy-files microstack_rocky_amd64.snap $MACHINE:
|
|
multipass exec $MACHINE -- \
|
|
sudo snap install --classic --dangerous microstack*.snap
|
|
|
|
# Drop the user into a snap shell, as root.
|
|
multipass exec $MACHINE -- \
|
|
sudo snap run --shell microstack.launch
|
|
|