Skip to content

Commit

Permalink
Merge pull request #4 from macbre/sphinx-3.1.1
Browse files Browse the repository at this point in the history
Build an image with Sphinx v3.1.1
  • Loading branch information
macbre authored Dec 25, 2018
2 parents 42acbd9 + 21ebfa7 commit d55772f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
# Dockerfile for Sphinx SE
# https://hub.docker.com/r/bitnami/minideb
FROM bitnami/minideb:stretch
# https://hub.docker.com/_/alpine/
FROM alpine:3.8

# https://sphinxsearch.com/blog/
ENV SPHINX_VERSION 3.0.3-facc3fb
ENV SPHINX_VERSION 3.1.1-612d99f

# install dependencies
RUN apt-get update && apt-get install -y \
default-libmysqlclient-dev \
libpq-dev \
RUN apk add --no-cache mariadb-connector-c-dev \
postgresql-dev \
wget

# set up and expose directories
RUN mkdir -pv /opt/sphinx/log /opt/sphinx/index
VOLUME /opt/sphinx/index

# http://sphinxsearch.com/files/sphinx-3.0.3-facc3fb-linux-amd64.tar.gz
RUN wget http://sphinxsearch.com/files/sphinx-${SPHINX_VERSION}-linux-amd64.tar.gz -O /tmp/sphinxsearch.tar.gz
# http://sphinxsearch.com/files/sphinx-3.1.1-612d99f-linux-amd64-musl.tar.gz
RUN wget http://sphinxsearch.com/files/sphinx-${SPHINX_VERSION}-linux-amd64-musl.tar.gz -O /tmp/sphinxsearch.tar.gz
RUN cd /opt/sphinx && tar -xf /tmp/sphinxsearch.tar.gz
RUN rm /tmp/sphinxsearch.tar.gz

# point to sphinx binaries
ENV PATH "${PATH}:/opt/sphinx/sphinx-3.0.3/bin"
ENV PATH "${PATH}:/opt/sphinx/sphinx-3.1.1/bin"
RUN indexer -v

# redirect logs to stdout
Expand Down
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# docker-sphinxsearch
Docker image for Sphinx search engine

[Read more](https://hub.docker.com/r/macbre/sphinxsearch/)
Docker image for [Sphinx search engine](http://sphinxsearch.com/docs/sphinx3.html)

```
docker pull macbre/sphinxsearch
Expand All @@ -25,7 +23,23 @@ services:
## [Tags available](https://hub.docker.com/r/macbre/sphinxsearch/tags/)
### `3.0.3`, `latest`
### `3.1.1`, `latest`

```
Sphinx 3.1.1 (commit 612d99f4)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

Built on: Linux alpine38 4.14.69-0-vanilla #1-Alpine SMP Mon Sep 10 19:33:23 UTC 2018 x86_64 Linux
Built with: gcc 6.4.0
Build date: Oct 17 2018
Build type: release
Configure flags: '--enable-dl' '--with-mysql' '--with-pgsql' '--with-unixodbc' 'CXXFLAGS=-DSPHINX_TAG= -DNDEBUG -O3 -g1 -D__MUSL__' 'LDFLAGS=-static-libstdc++ -static-libgcc'
Compiled DB drivers: mysql-dynamic pgsql-dynamic odbc-dynamic
Enabled dynamic drivers: mysql pgsql
```
### `3.0.3`
```
Sphinx 3.0.3 (commit facc3fb)
Expand Down

0 comments on commit d55772f

Please sign in to comment.