From f71a82f7857e13709d9f6a92202b6a53bc692752 Mon Sep 17 00:00:00 2001 From: Scott Yeager Date: Thu, 19 Jun 2025 22:17:52 -0700 Subject: [PATCH] Init --- docker-demo.sh | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 docker-demo.sh 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 <