Skip to content

Commit

Permalink
Merge pull request #3 from macbre/minideb-based-image
Browse files Browse the repository at this point in the history
Use bitnami/minideb instead of debian base image
  • Loading branch information
macbre authored Dec 25, 2018
2 parents 4a99a41 + 6837aa7 commit 42acbd9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.swp
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Dockerfile for Sphinx SE
FROM debian:stretch
# https://hub.docker.com/r/bitnami/minideb
FROM bitnami/minideb:stretch

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

# install dependencies
RUN apt-get update && apt-get install -y \
default-libmysqlclient-dev \
libpq-dev \
wget

# set timezone
# @see http://unix.stackexchange.com/a/76711
RUN cp /usr/share/zoneinfo/CET /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata
default-libmysqlclient-dev \
libpq-dev \
wget

# set up and expose directories
RUN mkdir -pv /opt/sphinx/log /opt/sphinx/index
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ Docker image for Sphinx search engine
docker pull macbre/sphinxsearch
```

## Usage example

You can use this image in `docker-compose`-powered app:

```yaml
services:
sphinx:
image: macbre/sphinxsearch:3.0.1
ports:
- "127.0.0.1:36307:36307" # bind to local interface only!
volumes:
- ./data:/opt/sphinx/index # directory where sphinx will store index data
- ./sphinx.conf:/opt/sphinx/conf/sphinx.conf # SphinxSE configuration file
mem_limit: 512m # match indexer.value from sphinx.conf
```
## [Tags available](https://hub.docker.com/r/macbre/sphinxsearch/tags/)
### `3.0.3`, `latest`
Expand Down

0 comments on commit 42acbd9

Please sign in to comment.