Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: python

python:
- "3.5"
- "3.6"

install:
- pip3 install -r requirements.txt

script:
# No tests at the moment, so just import the ticker
python -c 'import ticker'
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3

WORKDIR /ticker/
COPY . .
RUN pip install -r requirements.txt
RUN python manage.py migrate


EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
default: build
$(MAKE) run

run:
docker run --rm -p 8000:8000 --name jticker -v "$${PWD}:/ticker/" ticker

build:
docker build -t ticker .


.PHONY: default build run
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django>=1.10,1.11
django>=1.11
celery
django-celery
jsonpickle
Expand Down