From 6f1cac49834c0b0072e87d87405422615b6e95bd Mon Sep 17 00:00:00 2001 From: Quey-Liang Kao Date: Sat, 21 Jan 2017 03:19:17 +0800 Subject: Dockerize this project --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 202ca5c..3abc2b5 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,29 @@ See [The main Todolist website][tdl] for the current documentation. Yes. Yes it is. +## Quick Start using [Docker](https://github.com/docker/docker.git) + +Building the docker image: +``` +$ git clone https://github.com/gammons/todolist.git +$ cd todolist +$ docker build -t todolist . +``` + +If you have an existing todo-list file, then run the container with +``` +$ docker run -d -v your/todos/json/file:/.todos.json -p 7890:7890 todolist +``` + +Otherwise, you have to provide an empty todo file: +``` +$ echo [] > /tmp/.todos.json +$ docker run -d -v /tmp/.todos.json:/.todos.json -p 7890:7890 todolist +``` + +Finally, open your browser and enter `localhost:7890` at the URL, and \ +happy GTD! + ## Author Please send complaints, complements, rants, etc to [Grant Ammons][ga] -- cgit v1.3