snap-openstackclients/tools/lxd_build.sh
James Page 9f6bf3426e Update for OpenStack Train
Update snap for Train versions of the OpenStack Client and
dependencies.

Use core18 as the base for the snap.

Drop misc commands that are no longer provided.

Use python3 as the interpreter for snapcraft builds.

Switch to microstack style LXD build with switch to core18
base.

Change-Id: I2e3dc49c2ddb6889a3bf3738002d03cbc87fa644
2019-10-09 10:02:20 +01:00

17 lines
257 B
Bash
Executable File

#!/bin/bash
set -ex
sudo apt update
export PATH=/snap/bin:$PATH
# Setup snapd and snapcraft
sudo apt install -y snapd
sudo snap install --classic snapcraft
sudo snap install --classic lxd
sudo lxd init --auto
# Build our snap!
sudo snapcraft --use-lxd