Skip to content

Commit

Permalink
⚡️ (build) try to speed things up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Oct 20, 2023
1 parent c2c7cb1 commit 33e3d3f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/investigativedata/investigraph-eu:main
services:
postgres:
image: postgres:alpine
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
POSTGRES_USER: investigraph
POSTGRES_DB: investigraph
POSTGRES_PASSWORD: investigraph
redis:
image: redis:alpine
options: >-
Expand All @@ -24,6 +37,10 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
FSSPEC_S3_ENDPOINT_URL: ${{ secrets.FSSPEC_S3_ENDPOINT_URL }}
DEBUG: false
REDIS_URL: redis://redis:6379/0
PREFECT_API_DATABASE_CONNECTION_URL: postgresql+asyncpg://investigraph:investigraph@postgres/investigraph
PREFECT_TASK_RUNNER: dask
strategy:
matrix:
dataset:
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ghcr.io/investigativedata/investigraph:develop
FROM ghcr.io/investigativedata/investigraph:main

USER root
RUN apt install -y curl
RUN pip install lxml html5lib
RUN pip install lxml html5lib psycopg2-binary
RUN pip uninstall -y followthemoney
RUN pip install "followthemoney @ git+https://github.com/investigativedata/followthemoney.git@schema/science-identifiers"

Expand All @@ -16,5 +16,3 @@ COPY ./datasets/ec_meetings /data/datasets/ec_meetings
RUN investigraph add-block -b local-file-system/datasets -u /data/datasets

ENV DATASETS_BLOCK local-file-system/datasets
ENV REDIS_URL=redis://redis:6379/0
ENV DEBUG=0

0 comments on commit 33e3d3f

Please sign in to comment.