Skip to content

Commit

Permalink
Fix deployment issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Apr 11, 2018
1 parent 1cab905 commit efa1098
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data/
docs/
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alephdata/memorious

RUN pip install --upgrade pandas unicodecsv xlrd attrs

COPY . /opensanctions
RUN pip install -e /opensanctions

ENV MEMORIOUS_CONFIG_PATH=/opensanctions/opensanctions/config \
MEMORIOUS_EAGER=true

6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

build:
docker build -t alephdata/opensanctions .

run: build
docker run -ti alephdata/opensanctions /bin/bash
2 changes: 1 addition & 1 deletion opensanctions/config/eu_meps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: eu_meps
description: "[Opensanctions] Members of the European Parliament"
description: "[OSANC] Members of the European Parliament"
schedule: weekly
pipeline:
init:
Expand Down
2 changes: 1 addition & 1 deletion opensanctions/config/gb_hmt_sanctions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gb_hmt_sanctions
description: "[Opensanctions] UK HM Treasury sanctions list"
description: "[OSANC] UK HM Treasury sanctions list"
schedule: weekly
pipeline:
init:
Expand Down
2 changes: 1 addition & 1 deletion opensanctions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import countrynames
from pprint import pprint # noqa

from normality import stringify, collapse_spaces, slugify
import attr
from normality import stringify, collapse_spaces, slugify


log = logging.getLogger(__name__)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'memorious >= 0.4',
'unicodecsv',
'xlrd',
'attrs',
'pandas',
],
entry_points={
Expand Down

0 comments on commit efa1098

Please sign in to comment.