Skip to content

Instantly share code, notes, and snippets.

@mekarpeles
Last active May 1, 2025 12:05
Show Gist options
  • Save mekarpeles/5400677f0bc5cd7c7575c1bfb875eeec to your computer and use it in GitHub Desktop.
Save mekarpeles/5400677f0bc5cd7c7575c1bfb875eeec to your computer and use it in GitHub Desktop.
Thorium Web Recipe
cd /tmp
mkdir -p demo
curl -O "https://standardebooks.org/ebooks/l-frank-baum/dorothy-and-the-wizard-in-oz/downloads/l-frank-baum_dorothy-and-the-wizard-in-oz.epub?source=download"
mv l-frank-baum_dorothy-and-the-wizard-in-oz.epub ./demo
docker pull ghcr.io/readium/readium:0.1.0
BOOK=$(echo -n "l-frank-baum_dorothy-and-the-wizard-in-oz.epub" | base64 | tr '/+' '_-' | tr -d '=')
echo "http://localhost:15080/$BOOK/manifest.json"
docker run -d --rm -p 15080:15080 -v ./demo:/srv/publications ghcr.io/readium/readium:0.1.0
curl "http://localhost:15080/$BOOK/manifest.json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment