Skip to content

Instantly share code, notes, and snippets.

@metalefty
Last active August 12, 2020 08:25
Show Gist options
  • Save metalefty/011171846f3c0d6b5f203869467a983a to your computer and use it in GitHub Desktop.
Save metalefty/011171846f3c0d6b5f203869467a983a to your computer and use it in GitHub Desktop.
sudo snap install --channel=4.0/stable lxd
echo "alias lxc='/snap/bin/lxc'" > ~/.bash_aliases
lxd init --auto
for instance in core signer-a signer-b signer-c redis work tls-terminator
do
/snap/bin/lxc launch ubuntu:18.04 $instance
done
for instance in core signer-a signer-b signer-c redis work tls-terminator
do
/snap/bin/lxc exec $instance -- sh -c "apt-get update && apt-get upgrade -y"
done
for instance in core work
do
/snap/bin/lxc exec $instance -- snap install tapyrus-core --channel=0.4/stable
/snap/bin/lxc exec $instance -- snap install tapyrus-signer --channel=0.4/edge
done
for instance in signer-a signer-b signer-c work
do
/snap/bin/lxc exec $instance -- snap install tapyrus-signer --channel=0.4/stable
done
/snap/bin/lxc exec tls-terminator -- apt install -y nginx python3-certbot-nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment