Permalink
247c36d Jul 26, 2018
3 contributors

Users who have contributed to this file

@dvirsky @mnunberg @lamby
25 lines (21 sloc) 680 Bytes
FROM redislabsmodules/rmbuilder:latest as builder
# Build the source
ARG GIT_DESCRIBE_VERSION
ADD . /RSBUILD
WORKDIR /RSBUILD
RUN set -ex;\
rm -rf docker-build; \
mkdir docker-build; \
cd docker-build; \
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../ -DGIT_DESCRIBE_VERSION="$GIT_DESCRIBE_VERSION"; \
make -j4; \
pip install git+https://github.com/RedisLabs/rmtest@2.0; \
make test;
# Package the runner
FROM redis:latest
ENV LIBDIR /usr/lib/redis/modules
WORKDIR /data
RUN set -ex;\
mkdir -p "$LIBDIR";
COPY --from=builder /RSBUILD/docker-build/redisearch.so "$LIBDIR"
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/redisearch.so"]