Skip to content

Instantly share code, notes, and snippets.

@ibnesayeed
Created August 15, 2018 15:05
Show Gist options
  • Save ibnesayeed/8af586013e8c2f2898453119b4601959 to your computer and use it in GitHub Desktop.
Save ibnesayeed/8af586013e8c2f2898453119b4601959 to your computer and use it in GitHub Desktop.
Piping in Dockerfile CMD for IPWB with customizable WARC file using an environment variable
FROM oduwsdl/ipwb
ENV WARC=ipwb/samples/warcs/5mementos.warc
CMD ipfs daemon & while ! curl -s localhost:5001 > /dev/null; do sleep 1; done && ipwb index $WARC | ipwb replay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment