Mercurial > p > roundup > code
comparison scripts/Docker/Dockerfile @ 6575:c3c636feace3
Ass support for xapian indexer.
whoosh was built into the docker, but provides a fuzzy search with 1
edit. So adding xapinan to have a higher priority search that is not
fuzzy.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 27 Dec 2021 23:00:56 -0500 |
| parents | 8f1fddb71422 |
| children | 2eadad009010 |
comparison
equal
deleted
inserted
replaced
| 6574:20d4ca71d458 | 6575:c3c636feace3 |
|---|---|
| 30 # g++ installs cc1plus needed by pip install | 30 # g++ installs cc1plus needed by pip install |
| 31 RUN apk add \ | 31 RUN apk add \ |
| 32 g++ \ | 32 g++ \ |
| 33 gcc \ | 33 gcc \ |
| 34 gpgme-dev \ | 34 gpgme-dev \ |
| 35 libxapian \ | |
| 35 linux-headers \ | 36 linux-headers \ |
| 37 make \ | |
| 36 musl-dev \ | 38 musl-dev \ |
| 37 mysql-dev \ | 39 mysql-dev \ |
| 38 postgresql-dev \ | 40 postgresql-dev \ |
| 39 swig | 41 swig \ |
| 42 xapian-core-dev | |
| 43 | |
| 44 # build xapian bindings: | |
| 45 # file with sphinx build dependencies to remove after build | |
| 46 # they are over 70MB of space. | |
| 47 COPY scripts/Docker/sphinxdeps.txt . | |
| 48 | |
| 49 RUN set -xv && CWD=$PWD && \ | |
| 50 VER=$(apk list -I 'xapian-core-dev' | \ | |
| 51 sed 's/^xapian-core-dev-\([0-9.]*\)-.*/\1/') && \ | |
| 52 cd /tmp && \ | |
| 53 wget https://oligarchy.co.uk/xapian/$VER/xapian-bindings-$VER.tar.xz && \ | |
| 54 tar -Jxvf xapian-bindings-$VER.tar.xz && \ | |
| 55 cd xapian-bindings-$VER/ && \ | |
| 56 pip --no-cache-dir install sphinx==1.8.5 && \ | |
| 57 ./configure --prefix=/usr/local --with-python3 --disable-documentation && \ | |
| 58 make && make install && \ | |
| 59 pip uninstall --no-cache-dir -y -r $CWD/sphinxdeps.txt | |
| 40 | 60 |
| 41 # add requirements for pip here, e.g. Whoosh, gpg, zstd or other | 61 # add requirements for pip here, e.g. Whoosh, gpg, zstd or other |
| 42 # modules not installed in the base library. | 62 # modules not installed in the base library. |
| 43 # ignore warnings from pip to use virtualenv | 63 # ignore warnings from pip to use virtualenv |
| 44 COPY scripts/Docker/requirements.txt . | 64 COPY scripts/Docker/requirements.txt . |
| 81 # add libraries needed to run gpg/mysql/pgsql/brotli | 101 # add libraries needed to run gpg/mysql/pgsql/brotli |
| 82 RUN apk add \ | 102 RUN apk add \ |
| 83 gpgme \ | 103 gpgme \ |
| 84 mariadb-connector-c \ | 104 mariadb-connector-c \ |
| 85 libpq \ | 105 libpq \ |
| 86 libstdc++ | 106 libstdc++ \ |
| 107 libxapian | |
| 87 | 108 |
| 88 ARG source | 109 ARG source |
| 89 LABEL "org.roundup-tracker.vendor"="Roundup Issue Tracker Team" \ | 110 LABEL "org.roundup-tracker.vendor"="Roundup Issue Tracker Team" \ |
| 90 "org.roundup-tracker.description"="Roundup Issue Tracker using sqlite" \ | 111 "org.roundup-tracker.description"="Roundup Issue Tracker using sqlite" \ |
| 91 "version"="2.1.0 $source" \ | 112 "version"="2.1.0 $source" \ |
