Skip to content

Commit 219230b

Browse files
committed
✨ Docker environment for demo site + link in README
theunraveler#102
1 parent e8bf720 commit 219230b

File tree

10 files changed

+106
-0
lines changed

10 files changed

+106
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
A lightweight, Sinatra-based web interface for the
44
wonderful [Taskwarrior](http://taskwarrior.org/) todo application.
5+
Check our [Demo site](http://35.196.114.51).
56

67
[![Gem Version](https://badge.fury.io/rb/taskwarrior-web.png)](http://badge.fury.io/rb/taskwarrior-web)
78
[![Build Status](https://secure.travis-ci.org/theunraveler/taskwarrior-web.png)](http://travis-ci.org/theunraveler/taskwarrior-web)

demo/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine
2+
3+
RUN apk add --no-cache task ruby python \
4+
&& apk add --no-cache --virtual .build-dependencies ruby-dev make g++ \
5+
&& gem install taskwarrior-web --no-document \
6+
&& apk del --no-cache .build-dependencies
7+
8+
RUN echo '*/30 * * * * /opt/app/reset.sh' > /etc/crontabs/root
9+
10+
COPY app /opt/app
11+
12+
EXPOSE 80
13+
14+
CMD /opt/app/start.sh

demo/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
IMAGE_NAME=zebradil/taskwarrior-web-demo
2+
3+
build:
4+
docker build . -t $(IMAGE_NAME)
5+
6+
push:
7+
docker push $(IMAGE_NAME)

demo/app/data/.task/backlog.data

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{"description":"Create some screenshots","due":"20180506T000000Z","entry":"20180505T213129Z","modified":"20180505T213129Z","priority":"M","project":"Dev.Taskwarrior.Web","status":"pending","tags":["hobby","dev"],"uuid":"baab81bd-54f0-451b-9013-55dd3abace6b"}
2+
{"description":"Add screenshots to README","due":"20180507T000000Z","entry":"20180505T213227Z","modified":"20180505T213227Z","priority":"M","project":"Dev.Taskwarrior.Web","status":"pending","tags":["hobby","dev"],"uuid":"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"}
3+
{"description":"Add screenshots to README","due":"20180507T000000Z","entry":"20180505T213227Z","modified":"20180505T213246Z","project":"Dev.Taskwarrior.Web","status":"pending","tags":["hobby","dev"],"uuid":"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"}
4+
{"description":"Add screenshots to README","entry":"20180505T213227Z","modified":"20180505T213257Z","project":"Dev.Taskwarrior.Web","status":"pending","tags":["hobby","dev"],"uuid":"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"}
5+
{"description":"Add screenshots to README","entry":"20180505T213227Z","modified":"20180505T213304Z","priority":"M","project":"Dev.Taskwarrior.Web","status":"pending","tags":["hobby","dev"],"uuid":"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"}
6+
{"description":"Buy some stuff","due":"20180517T000000Z","entry":"20180505T213402Z","modified":"20180505T213402Z","project":"Home.Stuffing","status":"waiting","tags":["buy"],"uuid":"0084b849-93d2-43c8-bdcf-e413624b645e","wait":"20180514T000000Z"}
7+
{"description":"Create some screenshots","due":"20180506T000000Z","end":"20180505T213437Z","entry":"20180505T213129Z","modified":"20180505T213437Z","priority":"M","project":"Dev.Taskwarrior.Web","status":"completed","tags":["hobby","dev"],"uuid":"baab81bd-54f0-451b-9013-55dd3abace6b"}
8+
{"description":"Another task","entry":"20180505T213556Z","modified":"20180505T213556Z","project":"Dev.Taskwarrior","status":"pending","uuid":"ac800c85-8674-4e78-a655-ee8e361d8d40"}

demo/app/data/.task/completed.data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[description:"Create some screenshots" due:"1525564800" end:"1525556077" entry:"1525555889" modified:"1525556077" priority:"M" project:"Dev.Taskwarrior.Web" status:"completed" tags:"hobby,dev" uuid:"baab81bd-54f0-451b-9013-55dd3abace6b"]

demo/app/data/.task/pending.data

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[description:"Add screenshots to README" entry:"1525555947" modified:"1525555984" priority:"M" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
2+
[description:"Buy some stuff" due:"1526515200" entry:"1525556042" modified:"1525556042" project:"Home.Stuffing" status:"waiting" tags:"buy" uuid:"0084b849-93d2-43c8-bdcf-e413624b645e" wait:"1526256000"]
3+
[description:"Another task" entry:"1525556156" modified:"1525556156" project:"Dev.Taskwarrior" status:"pending" uuid:"ac800c85-8674-4e78-a655-ee8e361d8d40"]

demo/app/data/.task/undo.data

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
time 1525555889
2+
new [description:"Create some screenshots" due:"1525564800" entry:"1525555889" modified:"1525555889" priority:"M" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"baab81bd-54f0-451b-9013-55dd3abace6b"]
3+
---
4+
time 1525555947
5+
new [description:"Add screenshots to README" due:"1525651200" entry:"1525555947" modified:"1525555947" priority:"M" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
6+
---
7+
time 1525555966
8+
old [description:"Add screenshots to README" due:"1525651200" entry:"1525555947" modified:"1525555947" priority:"M" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
9+
new [description:"Add screenshots to README" due:"1525651200" entry:"1525555947" modified:"1525555966" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
10+
---
11+
time 1525555977
12+
old [description:"Add screenshots to README" due:"1525651200" entry:"1525555947" modified:"1525555966" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
13+
new [description:"Add screenshots to README" entry:"1525555947" modified:"1525555977" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
14+
---
15+
time 1525555984
16+
old [description:"Add screenshots to README" entry:"1525555947" modified:"1525555977" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
17+
new [description:"Add screenshots to README" entry:"1525555947" modified:"1525555984" priority:"M" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"782e9bc6-4f0a-4e61-8d9c-d20968f454ab"]
18+
---
19+
time 1525556042
20+
new [description:"Buy some stuff" due:"1526515200" entry:"1525556042" modified:"1525556042" project:"Home.Stuffing" status:"waiting" tags:"buy" uuid:"0084b849-93d2-43c8-bdcf-e413624b645e" wait:"1526256000"]
21+
---
22+
time 1525556077
23+
old [description:"Create some screenshots" due:"1525564800" entry:"1525555889" modified:"1525555889" priority:"M" project:"Dev.Taskwarrior.Web" status:"pending" tags:"hobby,dev" uuid:"baab81bd-54f0-451b-9013-55dd3abace6b"]
24+
new [description:"Create some screenshots" due:"1525564800" end:"1525556077" entry:"1525555889" modified:"1525556077" priority:"M" project:"Dev.Taskwarrior.Web" status:"completed" tags:"hobby,dev" uuid:"baab81bd-54f0-451b-9013-55dd3abace6b"]
25+
---
26+
time 1525556156
27+
new [description:"Another task" entry:"1525556156" modified:"1525556156" project:"Dev.Taskwarrior" status:"pending" uuid:"ac800c85-8674-4e78-a655-ee8e361d8d40"]
28+
---

demo/app/data/.taskrc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# [Created by task 2.5.1 5/6/2018 14:35:18]
2+
# Taskwarrior program configuration file.
3+
# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color',
4+
# 'man task-sync' or 'man taskrc'
5+
6+
# Here is an example of entries that use the default, override and blank values
7+
# variable=foo -- By specifying a value, this overrides the default
8+
# variable= -- By specifying no value, this means no default
9+
# #variable=foo -- By commenting out the line, or deleting it, this uses the default
10+
11+
# Use the command 'task show' to see all defaults and overrides
12+
13+
# Files
14+
data.location=~/.task
15+
16+
# Color theme (uncomment one to use)
17+
#include /usr/share/doc/task/rc/light-16.theme
18+
#include /usr/share/doc/task/rc/light-256.theme
19+
#include /usr/share/doc/task/rc/dark-16.theme
20+
#include /usr/share/doc/task/rc/dark-256.theme
21+
#include /usr/share/doc/task/rc/dark-red-256.theme
22+
#include /usr/share/doc/task/rc/dark-green-256.theme
23+
#include /usr/share/doc/task/rc/dark-blue-256.theme
24+
#include /usr/share/doc/task/rc/dark-violets-256.theme
25+
#include /usr/share/doc/task/rc/dark-yellow-green.theme
26+
#include /usr/share/doc/task/rc/dark-gray-256.theme
27+
#include /usr/share/doc/task/rc/dark-gray-blue-256.theme
28+
#include /usr/share/doc/task/rc/solarized-dark-256.theme
29+
#include /usr/share/doc/task/rc/solarized-light-256.theme
30+
#include /usr/share/doc/task/rc/no-color.theme
31+

demo/app/restart.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/ash
2+
3+
cd $(dirname $(realpath $0))
4+
5+
cp -f ./data/.taskrc /root/
6+
cp -rf ./data/.task /root/

demo/app/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
cd $(dirname $(realpath $0))
4+
5+
mkdir -p /root/.task
6+
7+
./restart.sh && task && task-web -p 80 -L -F

0 commit comments

Comments
 (0)