Skip to content

Commit

Permalink
Heroku ready (#276)
Browse files Browse the repository at this point in the history
* Get heroku ready

* Add yml file

* Remove unneeded files

* Remove deploy files

* Remove check for services being ready

* Update logs

* Update logging

* Updating tc root

* Logging for photos

* Logging for setting an image

* More logging

* Images to aws

* Remove hash test

* Storing images in s3 and tests

* Adding secrets

* Tests

* Add runtime

* Fix deploy

* Install boto3

* Fix images

* Remove end2end
  • Loading branch information
tomhamiltonstubber authored Jun 22, 2020
1 parent 705a57d commit 2bda0b6
Show file tree
Hide file tree
Showing 43 changed files with 154 additions and 607 deletions.
31 changes: 0 additions & 31 deletions .editorconfig

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:

- name: test
run: make test
env:
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

- name: codecov
run: bash <(curl -s https://codecov.io/bash)
Expand Down
1 change: 0 additions & 1 deletion .pyup.yml

This file was deleted.

11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ lint:
test:
pytest --cov=tcsocket

.PHONY: testcov
testcov: test
coverage html
.PHONY: build
build:
docker build tcsocket/ -t tcsocket

.PHONY: all
all: testcov lint
.PHONY: prod-push
prod-push:
git push heroku `git rev-parse --abbrev-ref HEAD`:master
8 changes: 0 additions & 8 deletions activate.dev.sh

This file was deleted.

51 changes: 11 additions & 40 deletions client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3.6
import asyncio
import json
import os
Expand Down Expand Up @@ -109,10 +108,7 @@ async def company_options(*, public_key, **kwargs):
'last_name': 'Howell',
'town': 'Edinburgh',
'country': 'United Kingdom',
'location': {
'latitude': None,
'longitude': None
},
'location': {'latitude': None, 'longitude': None},
'photo': 'http://unsplash.com/photos/vltMzn0jqsA/download',
'extra_attributes': [
{
Expand All @@ -121,55 +117,30 @@ async def company_options(*, public_key, **kwargs):
'type': 'text_extended',
'sort_index': 0,
'value': 'The returned group is itself an iterator that shares the underlying iterable with groupby(). '
'Because the source is shared, when the groupby() object is advanced, the previous group is no '
'longer visible. So, if that data is needed later, it should be stored as a list:',
'id': 195
'Because the source is shared, when the groupby() object is advanced, the previous group is no '
'longer visible. So, if that data is needed later, it should be stored as a list:',
'id': 195,
},
{
'machine_name': None,
'name': 'Teaching Experience',
'type': 'text_short',
'sort_index': 0,
'value': 'Harvard',
'id': 196
'id': 196,
},
],
'skills': [
{
'qual_level': 'A Level',
'subject': 'Mathematics',
'qual_level_ranking': 18.0,
'category': 'Maths'
},
{
'qual_level': 'GCSE',
'subject': 'Mathematics',
'qual_level_ranking': 16.0,
'category': 'Maths'
},
{
'qual_level': 'GCSE',
'subject': 'Algebra',
'qual_level_ranking': 16.0,
'category': 'Maths'
},
{
'qual_level': 'KS3',
'subject': 'Language',
'qual_level_ranking': 13.0,
'category': 'English'
},
{
'qual_level': 'Degree',
'subject': 'Mathematics',
'qual_level_ranking': 21.0,
'category': 'Maths'
},
{'qual_level': 'A Level', 'subject': 'Mathematics', 'qual_level_ranking': 18.0, 'category': 'Maths'},
{'qual_level': 'GCSE', 'subject': 'Mathematics', 'qual_level_ranking': 16.0, 'category': 'Maths'},
{'qual_level': 'GCSE', 'subject': 'Algebra', 'qual_level_ranking': 16.0, 'category': 'Maths'},
{'qual_level': 'KS3', 'subject': 'Language', 'qual_level_ranking': 13.0, 'category': 'English'},
{'qual_level': 'Degree', 'subject': 'Mathematics', 'qual_level_ranking': 21.0, 'category': 'Maths'},
],
'labels': [],
'last_updated': '2017-01-08T12:20:46.244Z',
'created': '2015-01-19',
'release_timestamp': '2017-01-08T12:27:07.541165Z'
'release_timestamp': '2017-01-08T12:27:07.541165Z',
}


Expand Down
15 changes: 0 additions & 15 deletions deploy/compose

This file was deleted.

22 changes: 0 additions & 22 deletions deploy/create-machine

This file was deleted.

4 changes: 0 additions & 4 deletions deploy/deploy

This file was deleted.

17 changes: 0 additions & 17 deletions docker-compose.beta.yml

This file was deleted.

15 changes: 0 additions & 15 deletions docker-compose.override.yml

This file was deleted.

17 changes: 0 additions & 17 deletions docker-compose.prod.yml

This file was deleted.

76 changes: 0 additions & 76 deletions docker-compose.yml

This file was deleted.

4 changes: 4 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build:
docker:
web: tcsocket/Dockerfile
worker: tcsocket/Dockerfile
2 changes: 0 additions & 2 deletions nginx/dev/Dockerfile

This file was deleted.

49 changes: 0 additions & 49 deletions nginx/dev/nginx.conf

This file was deleted.

5 changes: 0 additions & 5 deletions nginx/prod/Dockerfile

This file was deleted.

Loading

0 comments on commit 2bda0b6

Please sign in to comment.