Skip to content

Commit

Permalink
Build Docker image without ingestor dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jun 6, 2019
1 parent fd198e8 commit aee01d9
Show file tree
Hide file tree
Showing 30 changed files with 83,784 additions and 1,846 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ aleph.env
aleph.egg-info
docker-compose.*
celerybeat-schedul*
contrib/allCountries.zip
.git
.vscode
.travis.yml
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ui/i18n/messages.json
ui/i18n/messages.pot
ui/**/*.css

contrib/allCountries.zip

celerybeat-schedule*
aleph.env
test_settings.py
Expand Down
23 changes: 19 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
FROM alephdata/aleph-base:10
FROM ubuntu:19.04
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qq -y update \
&& apt-get -qq -y install build-essential locales \
ca-certificates postgresql-client \
python3-pip python3-dev python3-icu python3-psycopg2 \
python3-lxml python3-crypto python3-gunicorn \
&& apt-get -qq -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Set up the locale and make sure the system uses unicode for the file system.
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

# Install Python dependencies
RUN pip3 install spacy==2.1.4
RUN pip3 install --no-cache-dir -q -U pip setuptools six
RUN pip3 install --no-cache-dir -q spacy==2.1.4
RUN python3 -m spacy download xx
COPY requirements-generic.txt /tmp/
RUN pip3 install --no-cache-dir -r /tmp/requirements-generic.txt
Expand All @@ -16,9 +31,9 @@ RUN pip install -e /aleph
# RUN cd /usr/local/lib/python3.6/dist-packages && python3 /aleph/setup.py develop

# Configure some docker defaults:
ENV C_FORCE_ROOT=true \
ALEPH_ELASTICSEARCH_URI=http://elasticsearch:9200/ \
ENV ALEPH_ELASTICSEARCH_URI=http://elasticsearch:9200/ \
ALEPH_DATABASE_URI=postgresql://aleph:aleph@postgres/aleph \
ALEPH_GEONAMES_DATA=/aleph/contrib/geonames.txt \
REDIS_URL=redis://redis:6379/0 \
ARCHIVE_PATH=/data

Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ fixtures:
aleph crawldir --wait -f fixtures aleph/tests/fixtures/samples
balkhash iterate -d fixtures >aleph/tests/fixtures/samples.ijson

contrib/allCountries.zip:
curl -s -o contrib/allCountries.zip https://download.geonames.org/export/dump/allCountries.zip

geonames: contrib/allCountries.zip
unzip -p contrib/allCountries.zip | grep "ADM1\|PCLI\|PCLD\|PPLC\|PPLA" >contrib/geonames.txt

# pybabel init -i aleph/translations/messages.pot -d aleph/translations -l de -D aleph
translate: dev
pybabel extract -F babel.cfg -k lazy_gettext -o aleph/translations/messages.pot aleph
Expand Down
83,755 changes: 83,755 additions & 0 deletions contrib/geonames.txt

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions platform/Makefile

This file was deleted.

63 changes: 0 additions & 63 deletions platform/base/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions platform/helm/Chart.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions platform/helm/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions platform/helm/_namespace.yaml

This file was deleted.

1 change: 0 additions & 1 deletion platform/helm/requirements.yaml

This file was deleted.

128 changes: 0 additions & 128 deletions platform/helm/templates/api.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions platform/helm/templates/certs.yaml

This file was deleted.

Loading

0 comments on commit aee01d9

Please sign in to comment.