#!/bin/bash # This script is meant to be run in a fresh Ubuntu VM. It demonstrates how to # assign Mycelium addresses to Docker containers, from a single Mycelium # instance running on the host. When the script completes, there will be a # container running with a Mycelium address assigned to it. # Install prerequisites apt update && apt install -y wget iproute2 # Install Docker wget -qO- get.docker.com | bash # Install Mycelium MYCELIUM_VERSION="v0.5.6" wget https://github.com/threefoldtech/mycelium/releases/download/${MYCELIUM_VERSION}/mycelium-x86_64-unknown-linux-musl.tar.gz tar xf mycelium-x86_64-unknown-linux-musl.tar.gz cp mycelium /usr/local/bin/ # Create Mycelium service cat > /etc/systemd/system/mycelium.service <