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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
checkouts
repos
venv-*
workspace
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:2.7.10
ADD . .
RUN pip install -r ./requirements.txt

EXPOSE 8000
CMD gunicorn -b 0.0.0.0 -w 4 make-it-so:app --log-file -
14 changes: 14 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
machine:
services:
- docker

dependencies:
pre:
- docker build -t precog .

test:
override:
- python test.py
post:
- echo '<body bgcolor="black"><img src="https://gataplex.files.wordpress.com/2012/01/mindblown_st.gif" width="100%"></body>' > $CIRCLE_ARTIFACTS/index.html

deployment:
hub:
branch: baldur/docker
commands:
- ./deploy.sh
4 changes: 4 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
git clone git@github.com:mapzen/ecs_deployer.git
cd ecs_deployer
./deploy

6 changes: 6 additions & 0 deletions make-it-so.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ def make_500_response(error, traceback):

return make_response(render_template('error-runtime.html', **vars), 500)

app.debug = True
@app.route('/healthcheck')
def healthcheck():
resp = make_response("OK", 200)
return resp

@app.route('/')
@errors_logged
@handle_redirects
Expand Down