commit f71a82f7857e13709d9f6a92202b6a53bc692752 Author: Scott Yeager Date: Thu Jun 19 22:17:52 2025 -0700 Init diff --git a/docker-demo.sh b/docker-demo.sh new file mode 100644 index 0000000..4b8a1cd --- /dev/null +++ b/docker-demo.sh @@ -0,0 +1,66 @@ +#!/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 <